Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.55MB] [CPU: ▲0.41ms] 75% from 4 tests
Server-side resources used by ResAds
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,656.29ms on /wp-admin/admin.php?page=resads)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 42.53 ▲6.43 |
Dashboard /wp-admin | 3.96 ▲0.65 | 51.30 ▼0.97 |
Posts /wp-admin/edit.php | 4.00 ▲0.64 | 53.70 ▲5.12 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.71 | 87.28 ▼7.57 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 39.73 ▲5.08 |
ResAds /wp-admin/admin.php?page=resads | 4.89 | 1,656.29 |
AdManagement /wp-admin/admin.php?page=resads-admanagement | 3.78 | 40.79 |
Settings /wp-admin/admin.php?page=resads-settings | 3.81 | 36.74 |
AdSpots /wp-admin/admin.php?page=resads-adspots | 3.78 | 33.05 |
Server storage [IO: ▲0.22MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 56 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_resads_adspot |
wp_resads_resolution |
wp_resads_ad |
wp_resads_ad_adspot |
wp_resads_ad_statistik |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_resads_adspot_widget |
db_upgraded |
resads_version |
Browser metrics Passed 4 tests
An overview of browser requirements for ResAds
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲209 | 14.44 ▲0.07 | 6.05 ▲4.30 | 39.29 ▼3.84 |
Dashboard /wp-admin | 2,257 ▲72 | 5.15 ▼0.74 | 111.98 ▲0.99 | 79.47 ▲34.02 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 2.50 ▲0.44 | 37.34 ▼2.54 | 36.21 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,712 ▲192 | 22.67 ▼0.59 | 672.86 ▼30.74 | 30.40 ▼24.21 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.51 ▲0.35 | 103.93 ▲6.97 | 73.78 ▲29.94 |
ResAds /wp-admin/admin.php?page=resads | 1,287 | 5.78 | 80.78 | 88.94 |
AdManagement /wp-admin/admin.php?page=resads-admanagement | 1,045 | 1.93 | 29.91 | 28.77 |
Settings /wp-admin/admin.php?page=resads-settings | 1,182 | 5.07 | 50.00 | 50.07 |
AdSpots /wp-admin/admin.php?page=resads-adspots | 1,039 | 1.96 | 27.14 | 26.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_resads_adspot_widget
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 17× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/resads/templates/adspot/new.php
- > /wp-content/plugins/resads/class/AdSpot.php
- > /wp-content/plugins/resads/class/AdManagement.php
- > /wp-content/plugins/resads/templates/adspot/edit.php
- > /wp-content/plugins/resads/templates/admanagement/admanagement.php
- > /wp-content/plugins/resads/class/Dashboard.php
- > /wp-content/plugins/resads/templates/dashboard/dashboard.php
- > /wp-content/plugins/resads/templates/admanagement/new.php
- > /wp-content/plugins/resads/class/ResAds.php
- > /wp-content/plugins/resads/templates/adspot/adspot.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/resads/resads.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/resads/functions.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in resads/assets to your readme.txt
- Tags: Please delete some tags, you are using 26 tag instead of maximum 10
resads/resads.php Passed 13 tests
Analyzing the main PHP file in "ResAds" version 2.0.5
60 characters long description:
ResAds makes your advertising responsive and track your ads.
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
Success! There were no dangerous files found in this plugin2,998 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 253 | 706 | 2,492 |
JavaScript | 7 | 4 | 75 | 242 |
PO File | 1 | 106 | 128 | 224 |
CSS | 3 | 2 | 2 | 40 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 26.74 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 10 | 7.35% |
▷ Public methods | 132 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.94% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
12 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/align-right.png | 1.26KB | 0.30KB | ▼ 75.78% |
js/tinymce/adspot-button.png | 1.28KB | 0.32KB | ▼ 74.60% |
img/top-right.png | 1.20KB | 0.27KB | ▼ 77.78% |
img/bottom-right.png | 1.19KB | 0.26KB | ▼ 77.71% |
img/align-left.png | 1.28KB | 0.32KB | ▼ 74.60% |