Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲0.73ms] Passed 4 tests
A check of server-side resources used by Monetize Me
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.65 ▲4.83 |
Dashboard /wp-admin | 3.39 ▲0.09 | 51.54 ▲2.19 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 54.26 ▲7.30 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 90.20 ▼7.69 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.20 ▲3.57 |
Ads /wp-admin/edit.php?post_type=ad | 3.34 | 40.67 |
New item /wp-admin/post-new.php?post_type=ad | 3.40 | 53.90 |
Ad Sponsor /wp-admin/edit-tags.php?taxonomy=adsponsor&post_type=ad | 3.31 | 41.69 |
Ad Category /wp-admin/edit-tags.php?taxonomy=adcategory&post_type=ad | 3.31 | 37.56 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_monetize-me |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Monetize Me
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲113 | 13.67 ▼0.71 | 1.79 ▲0.02 | 41.02 ▼4.77 |
Dashboard /wp-admin | 2,241 ▲53 | 5.84 ▲0.97 | 100.79 ▼14.67 | 37.81 ▼9.86 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.03 ▲0.02 | 42.42 ▲4.69 | 37.27 ▲5.75 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.38 ▼0.00 | 658.87 ▼22.00 | 61.35 ▼2.60 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.18 ▼0.03 | 96.78 ▼22.36 | 44.32 ▼2.69 |
Ads /wp-admin/edit.php?post_type=ad | 1,104 | 1.94 | 31.45 | 30.83 |
New item /wp-admin/post-new.php?post_type=ad | 2,127 | 4.28 | 81.54 | 51.25 |
Ad Sponsor /wp-admin/edit-tags.php?taxonomy=adsponsor&post_type=ad | 1,269 | 2.14 | 26.41 | 27.40 |
Ad Category /wp-admin/edit-tags.php?taxonomy=adcategory&post_type=ad | 1,272 | 2.14 | 26.18 | 27.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_monetize-me
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monetize-me/inc/custom-taxonomies/adcategory.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/monetize-me/libs/widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/monetize-me/inc/shortcodes.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monetize-me/inc/custom-taxonomies/adsponsor.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monetize-me/inc/widgets.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monetize-me/inc/custom-post-types/ad.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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: A description for screenshot #7 is missing in monetize-me/assets to your readme.txt
monetize-me/main.php 92% from 13 tests
The primary PHP file in "Monetize Me" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("monetize-me.php" instead of "main.php")
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
Success! There were no dangerous files found in this plugin773 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 167 | 153 | 589 |
JavaScript | 4 | 20 | 48 | 112 |
Sass | 3 | 16 | 0 | 59 |
JSON | 1 | 0 | 0 | 12 |
CSS | 1 | 0 | 0 | 1 |
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.37 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected