90% ad-builder-for-adrotate

Code Review | Ad Builder for AdRotate

WordPress plugin Ad Builder for AdRotate scored90%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: 6.3.1
  • 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

20+ active /766 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼2.02ms] Passed 4 tests

Server-side resources used by Ad Builder for AdRotate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.62 ▲3.36
Dashboard /wp-admin3.32 ▲0.0154.45 ▲2.92
Posts /wp-admin/edit.php3.37 ▲0.0148.46 ▼0.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.11 ▼7.73
Media Library /wp-admin/upload.php3.24 ▲0.0136.69 ▼2.35

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, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ad Builder for AdRotate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9214.47 ▲0.241.95 ▲0.2041.13 ▼6.20
Dashboard /wp-admin2,206 ▲185.88 ▲0.86109.47 ▼6.5440.87 ▼3.89
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0139.64 ▲1.1733.56 ▼0.82
Add New Post /wp-admin/post-new.php1,533 ▲1423.25 ▲0.20655.80 ▲25.8083.97 ▲14.59
Media Library /wp-admin/upload.php1,391 ▲64.27 ▲0.09106.95 ▼14.1743.70 ▼0.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === ad-builder-for-adrotate === )
Please take inspiration from this readme.txt

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

"Ad Builder for AdRotate" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin61 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP172232
JavaScript28929

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin