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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.35ms] Passed 4 tests
Analyzing server-side resources used by Dependency Minification
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.33 ▼2.74 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.93 ▼3.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.65 ▼3.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.44 ▼4.58 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.21 ▼1.17 |
Dep. Minification /wp-admin/tools.php?page=dependency-minification | 3.21 | 30.73 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Dependency Minification
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.37 ▼0.19 | 1.77 ▲0.31 | 44.13 ▲5.28 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.02 | 90.91 ▲0.17 | 37.63 ▼6.18 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.07 | 39.56 ▲5.19 | 36.65 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.07 ▼0.65 | 657.32 ▼44.32 | 49.70 ▲1.27 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.12 ▼0.10 | 105.49 ▲4.02 | 46.71 ▲2.14 |
Dep. Minification /wp-admin/tools.php?page=dependency-minification | 794 | 2.04 | 28.58 | 31.48 |
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 does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dependency-minification/dependency-minification.php:1032
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
dependency-minification/dependency-minification.php 85% from 13 tests
The principal PHP file in "Dependency Minification" v. 0.9.8 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 316 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,610 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 545 | 886 | 3,214 |
Bourne Again Shell | 2 | 41 | 18 | 172 |
Markdown | 4 | 40 | 0 | 111 |
Bourne Shell | 1 | 12 | 6 | 47 |
YAML | 1 | 5 | 0 | 28 |
XML | 1 | 3 | 0 | 24 |
CSS | 1 | 2 | 0 | 14 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 43.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 229.00 |
Average method complexity | 8.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 39 | 40.62% |
▷ Public methods | 61 | 63.54% |
▷ Protected methods | 17 | 17.71% |
▷ Private methods | 18 | 18.75% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 109 | |
▷ Global constants | 97 | 88.99% |
▷ Class constants | 12 | 11.01% |
▷ Public constants | 12 | 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
There are no PNG files in this plugin