Benchmarks
Plugin footprint 65% 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.78MB] [CPU: ▼28.80ms] Passed 4 tests
Analyzing server-side resources used by WP CSS Merge
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.39 ▲0.34 |
Dashboard /wp-admin | 3.17 ▼0.14 | 25.27 ▼26.54 |
Posts /wp-admin/edit.php | 3.17 ▼0.19 | 23.45 ▼22.07 |
Add New Post /wp-admin/post-new.php | 3.17 ▼2.72 | 24.09 ▼62.53 |
Media Library /wp-admin/upload.php | 3.17 ▼0.06 | 27.55 ▼4.05 |
WP CSS Merge /wp-admin/options-general.php?page=wp-css-merge-page-general-settings | 3.17 | 25.89 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
wp-css-merge-activate |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP CSS Merge
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.20 ▼1.47 | 1.49 ▼0.35 | 39.99 ▼5.74 |
Dashboard /wp-admin | 2,219 ▲31 | 4.89 ▼0.02 | 102.93 ▼12.98 | 41.71 ▼4.87 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.02 ▲0.00 | 35.31 ▼1.74 | 33.42 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,526 ▲7 | 22.94 ▼0.25 | 625.93 ▼63.42 | 61.82 ▲7.80 |
Media Library /wp-admin/upload.php | 1,398 ▲16 | 4.22 ▲0.00 | 99.19 ▲2.05 | 41.09 ▼3.15 |
WP CSS Merge /wp-admin/options-general.php?page=wp-css-merge-page-general-settings | 923 | 2.03 | 24.76 | 29.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wp-css-merge-page-general-settings
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% 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× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-css-merge/public/partials/wp-css-merge-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wp-css-merge/admin/partials/wp-css-merge-admin-page-sidebar.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/wp-css-merge/admin/partials/components/wp-css-merge-admin-field-toggle.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("digitalapps.co")
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-css-merge ===
)
wp-css-merge/wp-css-merge.php Passed 13 tests
This is the main PHP file of "WP CSS Merge" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected919 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 397 | 635 | 749 |
CSS | 3 | 15 | 4 | 111 |
JavaScript | 2 | 15 | 54 | 59 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 5 | 8.47% |
▷ Public methods | 53 | 89.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.17% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/adunblocker-pro@2x.png | 40.87KB | 16.32KB | ▼ 60.08% |
admin/img/adunblocker-pro.png | 34.64KB | 14.19KB | ▼ 59.05% |