Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.95ms] Passed 4 tests
An overview of server-side resources used by Monkey Treat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.63 ▲6.19 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.43 ▲0.18 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.69 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 119.60 ▲26.59 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.85 ▼2.79 |
Monkey Treat /wp-admin/options-general.php?page=monkey-treat | 3.24 | 32.10 |
Server storage [IO: ▲0.74MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Monkey Treat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.84 ▲0.58 | 1.74 ▼0.14 | 38.93 ▼9.00 |
Dashboard /wp-admin | 2,210 ▲19 | 5.83 ▲0.97 | 101.89 ▼2.55 | 39.40 ▼4.84 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▲0.05 | 37.26 ▲3.41 | 31.02 ▼4.49 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.44 ▲5.22 | 679.26 ▲80.97 | 51.01 ▼0.39 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.22 ▲0.01 | 99.14 ▼0.29 | 44.82 ▲3.26 |
Monkey Treat /wp-admin/options-general.php?page=monkey-treat | 807 | 2.02 | 23.93 | 28.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/monkey-treat/includes/class-monkey-treat-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Monkey_Treat\\plugin_dir_path() in wp-content/plugins/monkey-treat/constants.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/monkey-treat/includes/shortcodes.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monkey-treat/admin/ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function Monkey_Treat\\plugin_dir_path() in wp-content/plugins/monkey-treat/constants.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Monkey Treat settings) image required
monkey-treat/monkey-treat.php Passed 13 tests
The principal PHP file in "Monkey Treat" v. 1.0.0 is loaded by WordPress automatically on each request
57 characters long description:
Generate link and QR image to receive Banano donation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected18,862 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 16,762 |
PHP | 22 | 631 | 539 | 2,057 |
JavaScript | 2 | 2 | 0 | 31 |
CSS | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 1 | 5.26% |
Methods | 157 | |
▷ Static methods | 48 | 30.57% |
▷ Public methods | 150 | 95.54% |
▷ Protected methods | 2 | 1.27% |
▷ Private methods | 5 | 3.18% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 31 | |
▷ Global constants | 30 | 96.77% |
▷ Class constants | 1 | 3.23% |
▷ Public constants | 1 | 100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.94KB | 7.14KB | ▼ 65.88% |