100% ad-builder-for-adrotate

Code Review | Ad Builder for AdRotate

WordPress plugin Ad Builder for AdRotate scored 100% from 54 tests.

About plugin

  • Plugin page: ad-builder-for-ad...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 5.9.2
  • First release: Sep 4, 2020
  • Latest release: Sep 4, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: broadstreetads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 480 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼295.02ms] Passed 4 tests

Server-side resources used by Ad Builder for AdRotate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0453.89 ▲1.17
Dashboard /wp-admin3.42 ▲0.0133.32 ▲0.65
Posts /wp-admin/edit.php3.65 ▲0.0137.51 ▼3.41
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.92 ▼1,175.23
Media Library /wp-admin/upload.php3.31 ▲0.0122.76 ▼2.09

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Ad Builder for AdRotate: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲5316.15 ▲0.186.48 ▲0.462.43 ▲0.35
Dashboard /wp-admin2,895 ▲406.33 ▼0.06117.35 ▼16.09153.74 ▼9.69
Posts /wp-admin/edit.php2,691 ▲33.43 ▼0.0165.04 ▲3.06156.32 ▲12.34
Add New Post /wp-admin/post-new.php1,763 ▲10220.11 ▲4.15377.15 ▼37.06160.57 ▲2.44
Media Library /wp-admin/upload.php1,698 ▼05.69 ▼0.02151.35 ▲13.96198.16 ▲12.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The SRP test was a success

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 97% 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 need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === ad-builder-for-adrotate === )
You can take inspiration from this readme.txt

ad-builder-for-adrotate/ad-builder-for-adrotate.php Passed 13 tests

The main PHP script in "Ad Builder for AdRotate" version 1.0.0 is automatically included on every request by WordPress
91 characters long description:
The easiest way to build attractive ads for your advertising clients in the AdRotate plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin61 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP172232
JavaScript28929

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.50
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin