84% kantbtrue-content-bottom-ads

Code Review | Kantbtrue content bottom ads

WordPress plugin Kantbtrue content bottom ads scored84%from 54 tests.

About plugin

  • Plugin page: kantbtrue-content...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2020
  • Latest release: Jun 23, 2020
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: kantbtrue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /443 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.40MB] [CPU: ▼27.69ms] Passed 4 tests

An overview of server-side resources used by Kantbtrue content bottom ads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.61 ▼6.78
Dashboard /wp-admin3.10 ▼0.2027.14 ▼24.79
Posts /wp-admin/edit.php3.24 ▼0.1232.46 ▼20.63
Add New Post /wp-admin/post-new.php4.64 ▼1.2442.42 ▼58.35
Media Library /wp-admin/upload.php3.19 ▼0.0429.99 ▼6.98

Server storage [IO: ▲3.03MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Kantbtrue content bottom ads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.23 ▼0.061.61 ▼0.1643.85 ▼1.60
Dashboard /wp-admin2,204 ▲245.55 ▼0.0584.07 ▼12.2341.21 ▼0.55
Posts /wp-admin/edit.php2,112 ▲92.02 ▲0.0346.71 ▲3.3539.14 ▼1.57
Add New Post /wp-admin/post-new.php1,538 ▲1023.29 ▲0.22655.14 ▲53.9964.08 ▲10.35
Media Library /wp-admin/upload.php1,415 ▲124.21 ▼0.16100.08 ▼3.7742.38 ▼3.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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 no errors were found, this is by no means 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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-content-bottom-ads/admin/enqueue.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kantbtrue-content-bottom-ads/frontend/enqueue.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: banner ads, custom ads, ads, content bottom ads

kantbtrue-content-bottom-ads/kantbtrue-content-bottom-ads.php 92% from 13 tests

The entry point to "Kantbtrue content bottom ads" version 1.1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin10,829 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,424
JSON200937
PHP81272251
CSS4013145
JavaScript21372

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected