Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.70MB] [CPU: ▼137.37ms] Passed 4 tests
Server-side resources used by WP-AMD - Global JS and CSS handling
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▲0.58 | 25.20 ▲0.48 |
Dashboard /wp-admin | 3.82 ▲0.76 | 37.39 ▼2.21 |
Posts /wp-admin/edit.php | 3.87 ▲0.76 | 38.28 ▲3.14 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.68 | 90.13 ▼550.87 |
Media Library /wp-admin/upload.php | 3.77 ▲0.76 | 43.81 ▲18.80 |
Scripts /wp-admin/themes.php?page=amd-page-script | 3.75 | 34.25 |
Styles /wp-admin/themes.php?page=amd-page-style | 3.75 | 35.10 |
Server storage [IO: ▲8.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 671 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-AMD - Global JS and CSS handling
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲80 | 15.99 ▲0.03 | 9.19 ▲4.32 | 73.83 ▲1.85 |
Dashboard /wp-admin | 2,940 ▲44 | 6.08 ▼0.09 | 114.48 ▼30.56 | 164.22 ▼14.58 |
Posts /wp-admin/edit.php | 2,750 ▲7 | 3.23 ▼0.01 | 61.93 ▼1.92 | 133.60 ▼4.23 |
Add New Post /wp-admin/post-new.php | 3,704 ▼104 | 18.31 ▼0.08 | 428.95 ▼19.16 | 159.47 ▼2.10 |
Media Library /wp-admin/upload.php | 1,762 ▲10 | 5.54 ▼0.02 | 164.13 ▲13.72 | 213.42 ▲32.33 |
Scripts /wp-admin/themes.php?page=amd-page-script | 1,622 | 4.34 | 105.62 | 159.44 |
Styles /wp-admin/themes.php?page=amd-page-style | 1,576 | 3.93 | 94.11 | 142.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UsabilityDynamics\\UI\\Field' not found in wp-content/plugins/wp-amd/vendor/usabilitydynamics/lib-ui/lib/class-field-multiple.php:7
- > PHP Fatal error
Uncaught Error: Class 'UsabilityDynamics\\UI\\Field' not found in wp-content/plugins/wp-amd/vendor/usabilitydynamics/lib-ui/lib/fields/class-taxonomy.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-amd/static/templates/style-edit-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-amd/vendor/usabilitydynamics/lib-ui/static/templates/admin/tab.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-amd/static/templates/script-edit-page.php:16
- > PHP Fatal error
Uncaught Error: Class 'UsabilityDynamics\\UI\\Field_Select_Advanced' not found in wp-content/plugins/wp-amd/vendor/usabilitydynamics/lib-ui/lib/fields/class-post.php:7
- > PHP Fatal error
Uncaught Error: Class 'UsabilityDynamics\\UI\\Field' not found in wp-content/plugins/wp-amd/vendor/usabilitydynamics/lib-ui/lib/fields/class-datetime.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wp-amd/lib/customizer/class-customize-editor-control.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-amd/wp-amd.php:41
- > PHP Fatal error
Uncaught Error: Class 'UsabilityDynamics\\AMD\\Scaffold' not found in wp-content/plugins/wp-amd/lib/class-style.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: customize, customizer, css handling, css, global css...
wp-amd/wp-amd.php Passed 13 tests
The main PHP script in "WP-AMD - Global JS and CSS handling" version 1.2.2 is automatically included on every request by WordPress
27 characters long description:
Global JS and CSS handling.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin35,377 lines of code in 619 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 508 | 5,644 | 4,850 | 24,830 |
PHP | 50 | 1,690 | 3,174 | 5,192 |
CSS | 20 | 301 | 231 | 2,026 |
HTML | 10 | 77 | 3 | 1,322 |
JSON | 14 | 1 | 0 | 871 |
LESS | 5 | 157 | 48 | 587 |
Markdown | 8 | 80 | 0 | 302 |
XHTML | 3 | 31 | 6 | 162 |
XML | 1 | 0 | 1 | 85 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 24.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 304.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 1 | 2.56% |
▷ Concrete classes | 38 | 97.44% |
▷ Final classes | 0 | 0.00% |
Methods | 290 | |
▷ Static methods | 155 | 53.45% |
▷ Public methods | 276 | 95.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 4.83% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.18MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/usabilitydynamics/lib-ui/static/styles/fields/jqueryui/img/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/usabilitydynamics/lib-ui/static/styles/fields/jqueryui/img/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/usabilitydynamics/lib-ui/static/styles/fields/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
static/screenshots/script-editor.png | 96.48KB | 26.47KB | ▼ 72.56% |
vendor/usabilitydynamics/lib-ui/static/styles/fields/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |