Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.28ms] Passed 4 tests
This is a short check of server-side resources used by Additional Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.85 ▼2.49 |
Dashboard /wp-admin | 3.40 ▲0.05 | 46.05 ▼14.73 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.74 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 90.95 ▼6.01 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.45 ▲0.23 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Additional Content
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.23 ▼1.15 | 4.58 ▲2.64 | 41.44 ▼9.69 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.04 | 108.16 ▲1.93 | 38.00 ▼5.72 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.03 | 40.47 ▲6.49 | 34.11 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6,287 ▲4,754 | 19.29 ▼3.85 | 893.41 ▲208.84 | 61.82 ▼5.09 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.27 ▲0.09 | 92.78 ▼23.36 | 41.43 ▼5.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: describedby in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 4
- > PHP Notice
Undefined variable: i in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 4
- > PHP Notice
Undefined variable: i in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 3
- > PHP Notice
Undefined variable: i in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php:4
- > PHP Notice
Undefined variable: label in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: publish, edit, post content, extra, shortcodes...
additional-content/additional-content.php 85% from 13 tests
Analyzing the main PHP file in "Additional Content" version 1.3.0
Please take the time to fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,032 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 286 | 544 | 872 |
JavaScript | 2 | 42 | 18 | 133 |
JSON | 2 | 0 | 0 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected