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: ▼2.30MB] [CPU: ▼350.13ms] Passed 4 tests
A check of server-side resources used by AdsPlace'r - Ad Manager, Inserter, AdSense Ads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.44 | 5.55 ▼43.60 |
Dashboard /wp-admin | 2.09 ▼1.31 | 5.72 ▼27.48 |
Posts /wp-admin/edit.php | 2.09 ▼1.55 | 5.68 ▼33.32 |
Add New Post /wp-admin/post-new.php | 2.09 ▼4.91 | 5.68 ▼1,296.11 |
Media Library /wp-admin/upload.php | 2.09 ▼1.20 | 6.01 ▼18.40 |
Instruction /wp-admin/admin.php?page=adsplacer_support | 2.09 | 5.79 |
Settings /wp-admin/admin.php?page=adsplacer | 2.09 | 6.27 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for AdsPlace'r - Ad Manager, Inserter, AdSense Ads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,826 ▲82 | 15.97 ▲0.34 | 6.12 ▼0.87 | 1.96 ▼0.59 |
Dashboard /wp-admin | 2,929 ▲68 | 6.02 ▼0.15 | 118.55 ▼12.04 | 157.12 ▼1.69 |
Posts /wp-admin/edit.php | 2,728 ▲34 | 3.24 ▲0.01 | 63.45 ▲0.38 | 142.47 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,743 ▲82 | 19.46 ▲2.88 | 399.63 ▲7.47 | 168.16 ▲14.84 |
Media Library /wp-admin/upload.php | 1,735 ▲43 | 5.48 ▼0.05 | 146.39 ▲5.62 | 188.71 ▲0.96 |
Instruction /wp-admin/admin.php?page=adsplacer_support | 1,075 | 2.38 | 53.91 | 118.96 |
Settings /wp-admin/admin.php?page=adsplacer | 4,260 | 20.27 | 477.29 | 199.63 |
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
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/adsplacer/adsplacer.php+45
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 36 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adsplacer
- > Notice in wp-content/plugins/adsplacer/adsplacer.php+533
Trying to access array offset on value of type bool
- 66 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=adsplacer
- > Notice in wp-content/plugins/adsplacer/adsplacer.php+533
Trying to access array offset on value of type null
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/adsplacer/adsplacer.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
adsplacer/adsplacer.php Passed 13 tests
"AdsPlace'r - Ad Manager, Inserter, AdSense Ads" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
Manage ad blocks in the articles separately for visitors to the PC and mobile OS
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin791 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 85 | 11 | 567 |
CSS | 1 | 20 | 0 | 125 |
PO File | 1 | 19 | 23 | 61 |
JavaScript | 1 | 7 | 0 | 38 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin