83% adbuilder

Code Review | AdBuilder WordPress Plugin

WordPress plugin AdBuilder WordPress Plugin scored 83% from 54 tests.

About plugin

  • Plugin page: adbuilder
  • Plugin version: 1.0.0....
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3.2
  • WordPress version: 5.9.2
  • First release: May 13, 2020
  • Latest release: May 13, 2020
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: pilotmark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 274 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by AdBuilder WordPress Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0453.28 ▲2.12
Dashboard /wp-admin3.44 ▲0.0333.00 ▲0.19
Posts /wp-admin/edit.php3.67 ▲0.0336.92 ▼0.01
Add New Post /wp-admin/post-new.php6.91 ▼0.0690.39 ▼1,214.40
Media Library /wp-admin/upload.php3.32 ▲0.0323.27 ▼1.69

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
widget_adbuilderbiz_widget

Browser metrics Passed 4 tests

AdBuilder WordPress Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1015.91 ▼0.156.03 ▼0.372.26 ▼0.85
Dashboard /wp-admin2,892 ▲386.14 ▼0.02117.69 ▼19.15158.32 ▼6.30
Posts /wp-admin/edit.php2,694 ▲63.23 ▼0.0063.45 ▼0.11137.14 ▼3.62
Add New Post /wp-admin/post-new.php1,661 ▼5016.78 ▼4.55402.57 ▼80.65161.49 ▼1.75
Media Library /wp-admin/upload.php1,698 ▼05.49 ▼0.02144.26 ▲3.34188.56 ▼3.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_adbuilderbiz_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adbuilder/adbuilder.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adbuilder/adbuilderbiz.widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
There were not plugin tags detected

adbuilder/adbuilder.php 69% from 13 tests

The entry point to "AdBuilder WordPress Plugin" version 1.0.0.... is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 259 characters long)
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0.0....")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.2" instead of "7.0")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.3.2" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171591

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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 are no PNG files in this plugin