Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.59ms] Passed 4 tests
A check of server-side resources used by ManageAd
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.27 ▼6.55 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.16 ▼2.48 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 55.40 ▲7.63 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 93.18 ▲3.77 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 48.96 ▲11.07 |
ManageAd /wp-admin/options-general.php?page=managead | 3.28 | 40.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
managead_block_option |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
managead_block_count |
Browser metrics Passed 4 tests
An overview of browser requirements for ManageAd
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.33 ▼0.90 | 1.84 ▼0.94 | 42.92 ▼4.59 |
Dashboard /wp-admin | 2,227 ▲39 | 4.87 ▼0.94 | 106.93 ▲5.00 | 42.27 ▲3.89 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.02 ▲0.03 | 40.65 ▲4.07 | 34.41 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,696 ▲182 | 21.96 ▲4.30 | 668.64 ▼29.99 | 37.23 ▼26.14 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.20 ▼0.02 | 96.25 ▼13.18 | 43.98 ▼3.18 |
ManageAd /wp-admin/options-general.php?page=managead | 842 | 2.06 | 27.72 | 39.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- managead_block_count
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/managead/admin/partials/view.php:9
- > PHP Notice
Undefined variable: heading in wp-content/plugins/managead/admin/partials/view.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: manage ad, gutenberg, ad manager, adsense, gutenberg adsense...
managead/managead.php 92% from 13 tests
This is the main PHP file of "ManageAd" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected618 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 60 | 126 | 315 |
JavaScript | 3 | 18 | 29 | 158 |
CSS | 1 | 24 | 9 | 145 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 18.18% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin