Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼3.13ms] Passed 4 tests
Server-side resources used by Monetag Official Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 45.86 ▲4.85 |
Dashboard /wp-admin | 3.58 ▲0.24 | 53.70 ▼7.61 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 49.38 ▲10.36 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 84.89 ▼15.19 |
Media Library /wp-admin/upload.php | 3.44 ▲0.22 | 41.65 ▲5.43 |
Server storage [IO: ▲0.19MB] [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: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
monetag_zones_last_update_time |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Monetag Official Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲152 | 13.63 ▼1.19 | 3.95 ▲1.98 | 42.33 ▼0.81 |
Dashboard /wp-admin | 2,329 ▲138 | 5.84 ▼0.01 | 110.01 ▲2.61 | 41.24 ▼3.61 |
Posts /wp-admin/edit.php | 2,212 ▲120 | 2.02 ▼0.03 | 35.69 ▼5.43 | 32.80 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,703 ▲174 | 22.42 ▲4.22 | 594.47 ▼55.25 | 27.43 ▼23.43 |
Media Library /wp-admin/upload.php | 1,508 ▲117 | 4.15 ▼0.07 | 102.16 ▲5.80 | 44.03 ▲1.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Ads_Admin' not found in wp-content/plugins/monetag-official/admin/partials/ads-admin-footer.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/monetag-official/admin/partials/ads-admin-connect.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/monetag-official/admin/partials/ads-admin-script.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/monetag-official/admin/partials/ads-admin-modal.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/monetag-official/admin/partials/ads-admin.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/monetag-official/admin/partials/ads-admin-formats.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/monetag-official/admin/partials/ads-admin-verify.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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:
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in monetag-official/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
monetag-official/ads.php 85% from 13 tests
"Monetag Official Plugin" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("monetag-official.php" instead of "ads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,129 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 396 | 596 | 1,684 |
CSS | 1 | 72 | 0 | 430 |
XML | 1 | 8 | 8 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 3 | 2.68% |
▷ Public methods | 87 | 77.68% |
▷ Protected methods | 2 | 1.79% |
▷ Private methods | 23 | 20.54% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 40 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 40 | 100.00% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon-plus.png | 0.23KB | 0.17KB | ▼ 23.83% |
admin/img/icon.png | 0.83KB | 0.48KB | ▼ 42.79% |
admin/img/format-onclick.png | 18.94KB | 9.95KB | ▼ 47.47% |
admin/img/icon-profile.png | 0.88KB | 0.51KB | ▼ 41.60% |
admin/img/icon-checked.png | 0.53KB | 0.31KB | ▼ 42.60% |