Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▲4.94ms] Passed 4 tests
Server-side resources used by Source Affix
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 42.70 ▲0.14 |
Dashboard /wp-admin | 3.86 ▲0.55 | 52.81 ▲7.08 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 51.70 ▲6.08 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 94.92 ▲7.32 |
Media Library /wp-admin/upload.php | 3.69 ▲0.47 | 39.06 ▲6.44 |
Source Affix /wp-admin/options-general.php?page=source-affix | 3.69 | 39.70 |
Server storage [IO: ▲0.23MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
nssa_option_migration_complete |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Source Affix: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲232 | 17.52 ▲2.87 | 1.91 ▲0.12 | 42.99 ▼5.38 |
Dashboard /wp-admin | 2,382 ▲191 | 8.23 ▲3.33 | 149.64 ▲34.55 | 38.40 ▼5.13 |
Posts /wp-admin/edit.php | 2,285 ▲199 | 5.31 ▲3.18 | 86.71 ▲50.31 | 29.61 ▼5.53 |
Add New Post /wp-admin/post-new.php | 6,260 ▲4,746 | 27.35 ▲9.86 | 932.63 ▲234.10 | 43.25 ▼14.74 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 5.56 ▲1.39 | 123.57 ▲22.52 | 41.43 ▼3.44 |
Source Affix /wp-admin/options-general.php?page=source-affix | 1,253 | 5.29 | 86.21 | 27.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- nssa_option_migration_complete
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Nilambar\\Optioner\\add_action() in wp-content/plugins/source-affix/vendor/ernilambar/optioner/optioner.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: plugin, classicpress, post, metabox, source...
source-affix/source-affix.php Passed 13 tests
"Source Affix" version 2.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Plugin to add sources in your posts, pages or custom post types
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,712 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 761 | 1,474 | 2,433 |
JSON | 3 | 0 | 0 | 149 |
JavaScript | 5 | 6 | 4 | 88 |
CSS | 5 | 0 | 0 | 40 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 39.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 23 | 15.65% |
▷ Public methods | 125 | 85.03% |
▷ Protected methods | 10 | 6.80% |
▷ Private methods | 12 | 8.16% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 12 | |
▷ Global constants | 9 | 75.00% |
▷ Class constants | 3 | 25.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin