Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'AdrotateExtraSettings' not found
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.65ms] Passed 4 tests
An overview of server-side resources used by Adrotate Extra Settings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.56 ▼4.54 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.08 ▼5.29 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 46.10 ▲1.51 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.86 ▼10.27 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.31 ▲1.67 |
Extra Settings /wp-admin/admin.php?page=adrotate-extra-settings | 3.25 | 33.30 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Adrotate Extra Settings
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.23 | 1.72 ▼0.06 | 42.91 ▲0.09 |
Dashboard /wp-admin | 2,206 ▲21 | 4.84 ▼1.17 | 102.33 ▼5.82 | 35.84 ▼11.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 40.57 ▲3.42 | 35.21 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 22.99 ▲0.15 | 678.17 ▲21.89 | 56.05 ▲4.32 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.32 ▲0.08 | 97.51 ▼12.82 | 41.34 ▼7.77 |
Extra Settings /wp-admin/admin.php?page=adrotate-extra-settings | 819 | 2.02 | 25.26 | 24.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'AdrotateExtraSettings' not found
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: adrotate, banner, ad, ads
adrotate-extra-settings/adrotate-extra-settings.php Passed 13 tests
The principal PHP file in "Adrotate Extra Settings" v. 1.2.0 is loaded by WordPress automatically on each request
84 characters long description:
Ultra light plugin for Wordpress that add new tinys feature to AdRotate/AdRotate Pro
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 plugin207 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 55 | 160 | 186 |
CSS | 1 | 0 | 1 | 19 |
JavaScript | 1 | 0 | 0 | 2 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 7.46KB | 4.99KB | ▼ 33.04% |
assets/screenshot-1.png | 21.95KB | 11.03KB | ▼ 49.75% |
assets/screenshot-2.png | 12.19KB | 4.65KB | ▼ 61.85% |
assets/icon-256x256.png | 15.82KB | 9.47KB | ▼ 40.11% |
assets/banner-772x250.png | 70.72KB | 34.23KB | ▼ 51.60% |