10% kento-ads-rotator

Code Review | Kento Ads Rotator

WordPress plugin Kento Ads Rotator scored 10% from 54 tests.

About plugin

  • Plugin page: kento-ads-rotator
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 5.9.2
  • First release: Feb 18, 2014
  • Latest release: Jun 9, 2015
  • Number of updates: 24
  • Update frequency: every 19.8 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active / 12,896 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0454.91 ▲4.88
Dashboard /wp-admin3.46 ▲0.0532.91 ▼3.00
Posts /wp-admin/edit.php3.68 ▲0.0438.97 ▲2.19
Add New Post /wp-admin/post-new.php6.93 ▼0.0490.17 ▼1,174.39
Media Library /wp-admin/upload.php3.33 ▲0.0425.83 ▲2.41
Add New KADS /wp-admin/post-new.php?post_type=kads3.6143.32
kads Groups /wp-admin/edit-tags.php?taxonomy=kad&post_type=kads3.3424.59
kads Info /wp-admin/edit.php?post_type=kads&page=kads_settings3.3522.15
KADS /wp-admin/edit.php?post_type=kads3.3826.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,971 ▲22916.38 ▲0.378.83 ▲2.392.63 ▲0.55
Dashboard /wp-admin2,950 ▲896.18 ▲0.06127.60 ▼5.61179.39 ▲18.69
Posts /wp-admin/edit.php2,758 ▲643.29 ▲0.0564.00 ▲1.57141.55 ▲0.02
Add New Post /wp-admin/post-new.php1,699 ▲3216.45 ▼2.53414.45 ▲28.88155.84 ▲5.76
Media Library /wp-admin/upload.php1,758 ▲605.62 ▲0.15124.42 ▼11.85210.98 ▲26.74
Add New KADS /wp-admin/post-new.php?post_type=kads2,7434.2481.56186.60
kads Groups /wp-admin/edit-tags.php?taxonomy=kad&post_type=kads1,6933.1555.34113.65
kads Info /wp-admin/edit.php?post_type=kads&page=kads_settings1,1852.7754.46113.42
KADS /wp-admin/edit.php?post_type=kads1,4253.1766.09128.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

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


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 ("")
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.32
Average class complexity135.00
▷ Minimum class complexity135.00
▷ Maximum class complexity135.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2132.81%
▷ Protected methods4367.19%
▷ Private methods00.00%
▷ Named functions17100.00%
▷ Anonymous functions00.00%
▷ Global constants11.75%
▷ Class constants5698.25%
▷ Public constants56100.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
FileSize - originalSize - compressedSavings
css/item-cross.png0.38KB0.37KB▼ 3.31%
css/browser/Opera-Mini.png1.59KB0.87KB▼ 45.30%
css/browser/OmniWeb.png4.16KB1.33KB▼ 68.00%
css/browser/Firebird.png1.76KB1.13KB▼ 35.87%
css/platform/Android.png3.41KB0.93KB▼ 72.84%