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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.04ms] Passed 4 tests
A check of server-side resources used by Clear StatPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.93 ▼3.73 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.05 ▼1.57 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.18 ▼3.59 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.46 ▼15.25 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 36.18 ▼0.11 |
About /wp-admin/admin.php?page=leniy-plugins | 3.22 | 30.03 |
Clear StatPress /wp-admin/admin.php?page=leniy-plugins/Clear-StatPress.php | 3.20 | 32.69 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Clear StatPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲91 | 14.74 ▲0.36 | 1.84 ▼0.79 | 44.10 ▼3.82 |
Dashboard /wp-admin | 2,232 ▲44 | 5.86 ▲0.96 | 101.49 ▼4.80 | 71.55 ▲31.97 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.00 ▼0.13 | 36.45 ▼4.53 | 35.25 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,689 ▲175 | 20.09 ▲2.47 | 744.87 ▲77.46 | 63.12 ▲6.21 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.20 ▼0.02 | 97.52 ▼6.45 | 58.76 ▲8.45 |
About /wp-admin/admin.php?page=leniy-plugins | 895 | 1.86 | 22.70 | 62.67 |
Clear StatPress /wp-admin/admin.php?page=leniy-plugins/Clear-StatPress.php | 895 | 2.02 | 25.67 | 36.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=leniy-plugins/Clear-StatPress.php
- > Notice in wp-content/plugins/clear-statpress/Clear-StatPress.php+177
Undefined index: confirmdel
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clear-statpress/inc/leniy_admin_menu.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/clear-statpress/Clear-StatPress.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=leniy-plugins
- > Network (severe)
https://blog.leniy.org/project/wordpress - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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:
- Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
clear-statpress/Clear-StatPress.php 77% from 13 tests
Analyzing the main PHP file in "Clear StatPress" version 1.4.5
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("clear-statpress.php" instead of "Clear-StatPress.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 298 characters long)
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
Everything looks great! No dangerous files found in this plugin261 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 18 | 31 | 184 |
CSS | 1 | 0 | 7 | 51 |
PO File | 1 | 6 | 8 | 26 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 63.31KB | 23.71KB | ▼ 62.55% |
inc/leniy-ico.png | 0.45KB | 0.61KB | 0.00% |
inc/leniy.png | 1.36KB | 1.79KB | 0.00% |