Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.59MB] [CPU: ▲2.02ms] 75% from 4 tests
Server-side resources used by FireEMS Stats
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 10,036.85ms on /wp-admin/admin.php?page=fems-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 45.97 ▲7.44 |
Dashboard /wp-admin | 3.89 ▲0.59 | 49.85 ▲3.96 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 48.50 ▼1.95 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 86.51 ▼1.38 |
Media Library /wp-admin/upload.php | 3.81 ▲0.59 | 40.86 ▲8.13 |
Fire/EMS Stats /wp-admin/admin.php?page=fems-stats | 3.80 | 37.70 |
Help & FAQs /wp-admin/admin.php?page=fems-faq | 3.80 | 35.14 |
Settings /wp-admin/admin.php?page=fems-settings | 3.83 | 10,036.85 |
View Prior Stats /wp-admin/admin.php?page=fems-prior | 3.80 | 33.95 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 138 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_fems |
wp_fems_2023 |
New WordPress options |
---|
widget_fems_widget_month |
fems_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
FireEMS Stats: 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,835 ▲78 | 13.27 ▼1.03 | 1.92 ▲0.11 | 47.21 ▲4.04 |
Dashboard /wp-admin | 2,239 ▲51 | 5.86 ▼0.02 | 96.14 ▼18.26 | 78.93 ▲32.26 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.99 ▼0.04 | 33.79 ▼3.38 | 32.71 ▲4.16 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 18.23 ▲0.64 | 700.67 ▲7.97 | 57.54 ▲3.25 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.17 ▼0.00 | 96.77 ▼5.08 | 72.94 ▲31.56 |
Fire/EMS Stats /wp-admin/admin.php?page=fems-stats | 1,195 | 4.07 | 43.09 | 67.59 |
Help & FAQs /wp-admin/admin.php?page=fems-faq | 1,149 | 4.32 | 41.83 | 53.20 |
Settings /wp-admin/admin.php?page=fems-settings | 1,358 | 4.05 | 44.28 | 47.47 |
View Prior Stats /wp-admin/admin.php?page=fems-prior | 726 | 2.96 | 18.28 | 29.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- widget_recent-posts
- widget_fems_widget_month
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- theysaidso_admin_options
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)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=fems-prior
- > Parse error in wp-content/plugins/fireems-stats/admin/partials/fems-prior-stats.php+209
syntax error, unexpected end of file
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fireems-stats/includes/class-fireems-stats-backup.php
- > /wp-content/plugins/fireems-stats/public/class-fireems-stats-widget-month.php
- 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p10_Theme_UpdateChecker' not found in wp-content/plugins/fireems-stats/update-check/Puc/v4p10/Vcs/ThemeUpdateChecker.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/fireems-stats/admin/partials/fems-faq.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/fireems-stats/admin/partials/fems-stats.php:17
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p10_Update' not found in wp-content/plugins/fireems-stats/update-check/Puc/v4p10/Plugin/Update.php:11
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p10_Vcs_Api' not found in wp-content/plugins/fireems-stats/update-check/Puc/v4p10/Vcs/GitLabApi.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p10_DebugBar_Panel' not found in wp-content/plugins/fireems-stats/update-check/Puc/v4p10/DebugBar/PluginPanel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p10_DebugBar_Panel' not found in wp-content/plugins/fireems-stats/update-check/Puc/v4p10/DebugBar/ThemePanel.php:5
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p10_Vcs_Api' not found in wp-content/plugins/fireems-stats/update-check/Puc/v4p10/Vcs/BitBucketApi.php:4
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p10_Metadata' not found in wp-content/plugins/fireems-stats/update-check/Puc/v4p10/Update.php:10
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p10_InstalledPackage' not found in wp-content/plugins/fireems-stats/update-check/Puc/v4p10/Plugin/Package.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in fireems-stats/assets to your readme.txt
fireems-stats/fireems-stats.php 92% from 13 tests
This is the main PHP file of "FireEMS Stats" version 4.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8,063 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 2,964 | 3,108 | 7,219 |
PO File | 21 | 122 | 125 | 712 |
CSS | 5 | 14 | 1 | 59 |
JavaScript | 2 | 8 | 5 | 40 |
SQL | 1 | 9 | 0 | 33 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 5 | 11.11% |
▷ Concrete classes | 40 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 470 | |
▷ Static methods | 33 | 7.02% |
▷ Public methods | 289 | 61.49% |
▷ Protected methods | 160 | 34.04% |
▷ Private methods | 21 | 4.47% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icons/red-fire-truck-md.png | 1.06KB | 0.81KB | ▼ 23.37% |
admin/images/icons/green-fire-truck-md.png | 1.13KB | 0.88KB | ▼ 22.22% |
admin/images/icons/red-fire-truck.png | 0.96KB | 0.70KB | ▼ 26.48% |
admin/images/icons/green-fire-truck.png | 0.93KB | 0.69KB | ▼ 26.44% |
admin/images/small_ms.png | 8.56KB | 3.00KB | ▼ 64.96% |