Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.98ms] Passed 4 tests
Analyzing server-side resources used by WP Utility and Performance
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.57 ▼0.55 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.35 ▼2.16 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.80 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.51 ▼21.37 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.83 ▲3.84 |
WP Utility & Performance /wp-admin/options-general.php?page=wp-utility-and-performance | 3.28 | 33.90 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Utility and Performance
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.59 ▲0.41 | 1.62 ▼3.20 | 41.43 ▲3.56 |
Dashboard /wp-admin | 2,226 ▲35 | 5.82 ▲0.90 | 101.90 ▼1.08 | 35.46 ▼7.98 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.04 ▼0.01 | 41.93 ▲0.04 | 36.46 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,561 ▲17 | 18.47 ▲0.24 | 624.67 ▼11.66 | 48.38 ▼1.54 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.26 ▲0.08 | 99.70 ▼6.13 | 44.24 ▲1.62 |
WP Utility & Performance /wp-admin/options-general.php?page=wp-utility-and-performance | 1,285 | 2.06 | 26.17 | 28.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-utility-and-performance/admin/dashboard-notices.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-utility-and-performance/admin/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-utility-and-performance/admin/sidebar.php:9
- > PHP Warning
Use of undefined constant WPUP_PLUGIN_URI - assumed 'WPUP_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-utility-and-performance/admin/settings.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: utility, performance, speed, pagespeed, optimize...
wp-utility-and-performance/class-mantis-wp-utility.php 77% from 13 tests
"WP Utility and Performance" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-utility-and-performance.php" instead of "class-mantis-wp-utility.php")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin640 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 68 | 102 | 509 |
CSS | 1 | 0 | 0 | 131 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wordpress-utility-and-performance-plugin-thememantis-logo.png | 6.56KB | 4.06KB | ▼ 38.08% |
assets/images/wordpress-utility-and-performance-plugin-thememantis.png | 3.56KB | 3.68KB | 0.00% |