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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▼2.62ms] Passed 4 tests
This is a short check of server-side resources used by WPControl - The Easiest Optimization Plugin for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 44.17 ▲4.44 |
Dashboard /wp-admin | 3.74 ▲0.40 | 53.73 ▼11.30 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 55.83 ▲3.39 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 89.53 ▼6.99 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 45.67 ▲11.14 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
WPControl - The Easiest Optimization Plugin for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲117 | 13.27 ▼1.09 | 4.76 ▲2.42 | 42.51 ▲1.10 |
Dashboard /wp-admin | 2,247 ▲56 | 4.87 ▼0.02 | 112.08 ▲9.58 | 40.38 ▼3.66 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.06 ▲0.06 | 36.21 ▼4.56 | 32.94 ▼5.27 |
Add New Post /wp-admin/post-new.php | 1,528 ▲9 | 23.40 ▲0.28 | 697.06 ▲44.08 | 64.86 ▲6.71 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.23 ▲0.06 | 101.81 ▼0.28 | 44.81 ▲2.60 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wpcontrol/wp-control.php 92% from 13 tests
Analyzing the main PHP file in "WPControl - The Easiest Optimization Plugin for WordPress" version 1.0.1
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wpcontrol.php" instead of "wp-control.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,201 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 549 | 519 | 1,954 |
CSS | 1 | 68 | 9 | 172 |
JavaScript | 1 | 18 | 3 | 68 |
SVG | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 78.50 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 9.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 104 | |
▷ Named functions | 104 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default-gravatar-wpcontrol.png | 0.19KB | 0.08KB | ▼ 57.73% |