Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲2.04ms] Passed 4 tests
An overview of server-side resources used by Maintainn Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.24 ▼0.08 |
Dashboard /wp-admin | 3.47 ▲0.17 | 765.65 ▲715.54 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 54.93 ▲2.96 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 91.76 ▼4.59 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 44.16 ▲9.88 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Maintainn Tools
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲130 | 14.72 ▲0.09 | 1.83 ▲0.17 | 35.58 ▼9.29 |
Dashboard /wp-admin | 2,275 ▲101 | 5.62 ▼0.00 | 83.22 ▼9.59 | 92.72 ▲51.52 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.01 ▲0.05 | 37.29 ▼3.95 | 33.40 ▼6.51 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.03 ▼0.81 | 680.07 ▼46.16 | 62.51 ▲10.82 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.20 ▲0.02 | 100.38 ▼12.79 | 47.50 ▼0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function maintainn_customer() in wp-content/plugins/maintainn-tools/views/about-page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/maintainn-tools/maintainn-tools.php:475
- > PHP Fatal error
Uncaught Error: Class 'Browser' not found in wp-content/plugins/maintainn-tools/views/system-info.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintainn-tools/vendor/plugin-police.php:381
- > PHP Fatal error
Uncaught Error: Call to undefined function maintainn_customer() in wp-content/plugins/maintainn-tools/views/support-info.php:9
- > PHP Fatal error
Uncaught Error: Class 'CPT_Core' not found in wp-content/plugins/maintainn-tools/vendor/plugin-notes.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/maintainn-tools/includes/cli.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: dashboard, widget
maintainn-tools/maintainn-tools.php Passed 13 tests
The main file in "Maintainn Tools" v. 2.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
A plugin to Maintainn your WordPress website
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 plugin15,642 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 161 | 190 | 9,562 |
PHP | 20 | 666 | 2,185 | 3,137 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 1 | 31 | 1 | 140 |
CSS | 4 | 26 | 11 | 132 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 26.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 230 | |
▷ Static methods | 14 | 6.09% |
▷ Public methods | 146 | 63.48% |
▷ Protected methods | 51 | 22.17% |
▷ Private methods | 33 | 14.35% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 67 | |
▷ Global constants | 2 | 2.99% |
▷ Class constants | 65 | 97.01% |
▷ Public constants | 65 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.74MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/Info.png | 161.58KB | 57.92KB | ▼ 64.15% |
assets/img/Scanner.png | 207.58KB | 85.05KB | ▼ 59.03% |
assets/img/Maintainn.png | 167.17KB | 60.54KB | ▼ 63.78% |
assets/img/Tools.png | 212.52KB | 95.72KB | ▼ 54.96% |
assets/img/Maintainn-logo.png | 5.22KB | 2.41KB | ▼ 53.81% |