Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/monetize-wp/wordpress-money.php+17
Function create_function() is deprecated
Server metrics [RAM: ▼1.88MB] [CPU: ▼185.43ms] Passed 4 tests
This is a short check of server-side resources used by Monetize WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.75 ▼1.08 | 8.79 ▼23.86 |
Dashboard /wp-admin | 1.77 ▼1.28 | 5.49 ▼36.66 |
Posts /wp-admin/edit.php | 1.77 ▼1.34 | 5.41 ▼33.28 |
Add New Post /wp-admin/post-new.php | 1.77 ▼3.66 | 5.15 ▼645.32 |
Media Library /wp-admin/upload.php | 1.77 ▼1.23 | 5.26 ▼26.47 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 4 new options
New WordPress options |
---|
widget_monetize_wordpress_solvemedia_unlock |
widget_monetize_wordpress_solvemedia_unlock_custom |
widget_monetize_wordpress_custom_ads_widget |
monetize_wordpress_installed |
Browser metrics Passed 4 tests
An overview of browser requirements for Monetize WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,727 ▲131 | 15.96 ▲0.43 | 8.94 ▲0.33 | 44.64 ▼2.17 |
Dashboard /wp-admin | 2,992 ▲61 | 6.08 ▼0.09 | 137.71 ▼5.14 | 109.61 ▼7.63 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.69 ▲0.01 | 63.33 ▼2.16 | 89.81 ▲2.77 |
Add New Post /wp-admin/post-new.php | 1,885 ▲213 | 19.24 ▲0.39 | 370.08 ▲10.60 | 105.33 ▼2.33 |
Media Library /wp-admin/upload.php | 1,833 ▲29 | 5.01 ▲0.00 | 143.77 ▲10.30 | 116.18 ▲0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/monetize-wp/wordpress-money.php+17
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 4 options
- widget_monetize_wordpress_solvemedia_unlock_custom
- widget_monetize_wordpress_solvemedia_unlock
- widget_monetize_wordpress_custom_ads_widget
- monetize_wordpress_installed
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/monetize-wp/php_libraries/solvemedialib.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monetize-wp/options.php:1187
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/monetize-wp/wordpress-money-custom-ads-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/monetize-wp/wordpress-money-solvemedia-fullpage-locker-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/monetize-wp/wordpress-money-solvemedia-custom-locker-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
monetize-wp/wordpress-money.php 92% from 13 tests
This is the main PHP file of "Monetize WP" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("monetize-wp.php" instead of "wordpress-money.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,448 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 129 | 140 | 2,180 |
JavaScript | 5 | 6 | 0 | 159 |
CSS | 3 | 1 | 0 | 109 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 48 | 94.12% |
▷ Anonymous functions | 3 | 5.88% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.32MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assests/screenshot-2.png | 38.56KB | 16.50KB | ▼ 57.22% |
assests/banner-772x250.png | 15.24KB | 5.42KB | ▼ 64.43% |
assests/screenshot-6.png | 23.41KB | 9.61KB | ▼ 58.95% |
assests/screenshot-1.png | 68.63KB | 30.57KB | ▼ 55.46% |
assests/screenshot-3.png | 70.11KB | 29.23KB | ▼ 58.31% |