Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/kento-ads-rotator/includes/Browser.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; Browser_KADS has a deprecated constructor
Server metrics [RAM: ▼1.47MB] [CPU: ▼52.48ms] Passed 4 tests
An overview of server-side resources used by Kento Ads Rotator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.51 ▼0.95 | 6.20 ▼37.69 |
Dashboard /wp-admin | 2.53 ▼0.77 | 7.80 ▼42.66 |
Posts /wp-admin/edit.php | 2.53 ▼0.82 | 6.73 ▼38.58 |
Add New Post /wp-admin/post-new.php | 2.53 ▼3.35 | 8.21 ▼90.98 |
Media Library /wp-admin/upload.php | 2.53 ▼0.70 | 8.12 ▼29.07 |
Add New KADS /wp-admin/post-new.php?post_type=kads | 2.53 | 6.86 |
KADS /wp-admin/edit.php?post_type=kads | 2.53 | 8.03 |
kads Groups /wp-admin/edit-tags.php?taxonomy=kad&post_type=kads | 2.53 | 6.99 |
kads Info /wp-admin/edit.php?post_type=kads&page=kads_settings | 2.53 | 8.93 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 61 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_kads_info |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Kento Ads Rotator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲228 | 13.60 ▼0.77 | 8.32 ▲6.46 | 37.82 ▼3.92 |
Dashboard /wp-admin | 2,250 ▲59 | 4.96 ▼0.95 | 94.01 ▼10.95 | 86.31 ▲44.56 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.27 ▲0.27 | 37.06 ▲1.58 | 35.60 ▲2.87 |
Add New Post /wp-admin/post-new.php | 1,571 ▲52 | 23.10 ▼0.17 | 764.72 ▲63.59 | 57.57 ▲3.89 |
Media Library /wp-admin/upload.php | 1,442 ▲51 | 4.39 ▲0.15 | 93.71 ▼9.87 | 71.78 ▲26.66 |
Add New KADS /wp-admin/post-new.php?post_type=kads | 2,098 | 2.69 | 52.31 | 70.50 |
KADS /wp-admin/edit.php?post_type=kads | 1,119 | 2.21 | 34.07 | 32.43 |
kads Groups /wp-admin/edit-tags.php?taxonomy=kad&post_type=kads | 1,320 | 2.30 | 27.81 | 31.31 |
kads Info /wp-admin/edit.php?post_type=kads&page=kads_settings | 925 | 1.84 | 27.11 | 26.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/kento-ads-rotator/includes/Browser.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; Browser_KADS has a deprecated constructor
- Zombie tables detected upon uninstall: 1 table
- wp_kads_info
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=kads&page=kads_settings
- > Deprecated in wp-content/plugins/kento-ads-rotator/includes/Browser.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; Browser_KADS has a deprecated constructor
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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kento-ads-rotator/index.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kento-ads-rotator/kads-admin.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
kento-ads-rotator/index.php 92% from 13 tests
The main file in "Kento Ads Rotator" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kento-ads-rotator.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,758 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 496 | 337 | 1,498 |
CSS | 1 | 78 | 1 | 193 |
JavaScript | 1 | 79 | 0 | 67 |
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.32 |
Average class complexity | 135.00 |
▷ Minimum class complexity | 135.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 32.81% |
▷ Protected methods | 43 | 67.19% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 57 | |
▷ Global constants | 1 | 1.75% |
▷ Class constants | 56 | 98.25% |
▷ Public constants | 56 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
55 PNG files occupy 0.67MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/browser/Internet-Explorer.png | 3.66KB | 1.18KB | ▼ 67.66% |
css/browser/Iceweasel.png | 4.24KB | 1.36KB | ▼ 68.03% |
css/browser/Amaya.png | 3.63KB | 1.06KB | ▼ 70.78% |
css/platform/Linux.png | 0.75KB | 0.70KB | ▼ 6.40% |
screenshot-1.png | 68.94KB | 26.20KB | ▼ 62.00% |