Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > 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: ▲0.02MB] [CPU: ▼293.20ms] Passed 4 tests
Server-side resources used by Kento Ads Rotator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 54.91 ▲4.88 |
Dashboard /wp-admin | 3.46 ▲0.05 | 32.91 ▼3.00 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 38.97 ▲2.19 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 90.17 ▼1,174.39 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 25.83 ▲2.41 |
Add New KADS /wp-admin/post-new.php?post_type=kads | 3.61 | 43.32 |
kads Groups /wp-admin/edit-tags.php?taxonomy=kad&post_type=kads | 3.34 | 24.59 |
kads Info /wp-admin/edit.php?post_type=kads&page=kads_settings | 3.35 | 22.15 |
KADS /wp-admin/edit.php?post_type=kads | 3.38 | 26.68 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: 1 new table, no new options
New tables |
---|
wp_kads_info |
Browser metrics Passed 4 tests
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 / | 3,971 ▲229 | 16.38 ▲0.37 | 8.83 ▲2.39 | 2.63 ▲0.55 |
Dashboard /wp-admin | 2,950 ▲89 | 6.18 ▲0.06 | 127.60 ▼5.61 | 179.39 ▲18.69 |
Posts /wp-admin/edit.php | 2,758 ▲64 | 3.29 ▲0.05 | 64.00 ▲1.57 | 141.55 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,699 ▲32 | 16.45 ▼2.53 | 414.45 ▲28.88 | 155.84 ▲5.76 |
Media Library /wp-admin/upload.php | 1,758 ▲60 | 5.62 ▲0.15 | 124.42 ▼11.85 | 210.98 ▲26.74 |
Add New KADS /wp-admin/post-new.php?post_type=kads | 2,743 | 4.24 | 81.56 | 186.60 |
kads Groups /wp-admin/edit-tags.php?taxonomy=kad&post_type=kads | 1,693 | 3.15 | 55.34 | 113.65 |
kads Info /wp-admin/edit.php?post_type=kads&page=kads_settings | 1,185 | 2.77 | 54.46 | 113.42 |
KADS /wp-admin/edit.php?post_type=kads | 1,425 | 3.17 | 66.09 | 128.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 1 table in the database
- wp_kads_info
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 trigger server-side errors or Error 500 responses:
- > 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 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Donate link: Invalid URI ("")
kento-ads-rotator/index.php 92% from 13 tests
The entry point to "Kento Ads Rotator" version 1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as 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 an overview of programming languages used in this plugin; dangerous file extensions are not allowed
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
A brief analysis of cyclomatic complexity and code structure for this plugin
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
55 PNG files occupy 0.67MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/item-cross.png | 0.38KB | 0.37KB | ▼ 3.31% |
css/browser/Opera-Mini.png | 1.59KB | 0.87KB | ▼ 45.30% |
css/browser/OmniWeb.png | 4.16KB | 1.33KB | ▼ 68.00% |
css/browser/Firebird.png | 1.76KB | 1.13KB | ▼ 35.87% |
css/platform/Android.png | 3.41KB | 0.93KB | ▼ 72.84% |