Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼0.40ms] Passed 4 tests
This is a short check of server-side resources used by ZimRate
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.47 ▲1.73 |
Dashboard /wp-admin | 3.58 ▲0.23 | 51.09 ▼10.51 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 52.66 ▲2.99 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 101.63 ▲4.80 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 42.81 ▲4.18 |
ZimRate /wp-admin/admin.php?page=zimrate-dashboard | 3.42 | 34.83 |
Options /wp-admin/admin.php?page=zimrate-options | 3.41 | 38.22 |
Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by ZimRate
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.38 ▼0.17 | 1.55 ▼0.09 | 37.02 ▼1.80 |
Dashboard /wp-admin | 2,235 ▲57 | 5.57 ▼0.09 | 85.75 ▼25.95 | 71.91 ▲31.14 |
Posts /wp-admin/edit.php | 2,155 ▲52 | 2.00 ▼0.02 | 39.48 ▼7.77 | 35.41 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,727 ▲199 | 22.13 ▼1.12 | 705.58 ▼4.46 | 46.58 ▼8.86 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.11 ▼0.13 | 104.20 ▼1.42 | 78.97 ▲29.00 |
ZimRate /wp-admin/admin.php?page=zimrate-dashboard | 1,173 | 2.01 | 25.29 | 68.72 |
Options /wp-admin/admin.php?page=zimrate-options | 970 | 1.99 | 25.68 | 25.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=zimrate-dashboard
- > Notice in wp-content/plugins/zimrate/admin/partials/zimrate-admin-rates.php+56
Undefined index: USD
- > GET request to /wp-admin/admin.php?page=zimrate-dashboard
- > Warning in wp-content/plugins/zimrate/admin/partials/zimrate-admin-rates.php+56
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=zimrate-dashboard
- > Notice in wp-content/plugins/zimrate/admin/partials/zimrate-admin-rates.php+86
Undefined index: info
SRP 50% 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 fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zimrate/admin/partials/zimrate-admin-shortcode.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/zimrate/admin/partials/zimrate-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zimrate/admin/partials/zimrate-admin-plugins.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function zimrate_get_rates() in wp-content/plugins/zimrate/admin/partials/zimrate-admin-rates.php:16
- > 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 user-side errors
- > GET request to /wp-admin/admin.php?page=zimrate-dashboard
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'name')" "TypeError: Cannot read properties of undefined (reading 'name')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/zimrate/admin/js/zimrate-admin.js?ver=1.1.3:7:24)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=zimrate-dashboard
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'name')
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: zimrate, zimbabwe, currency, tyganeutronics, rate
zimrate/zimrate.php Passed 13 tests
This is the main PHP file of "ZimRate" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
124 characters long description:
All Zimbabwean exchange rates from multiple sites in one plugin. No need to scrounge the internet for the current days rate.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,678 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 281 | 1,032 | 1,516 |
Markdown | 1 | 40 | 0 | 73 |
CSS | 4 | 13 | 16 | 55 |
JavaScript | 2 | 4 | 27 | 33 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 2 | 3.51% |
▷ Public methods | 40 | 70.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 29.82% |
Functions | 23 | |
▷ Named functions | 18 | 78.26% |
▷ Anonymous functions | 5 | 21.74% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin