83% adbuilder

Code Review | AdBuilder WordPress Plugin

WordPress plugin AdBuilder WordPress Plugin scored83%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: 6.3.1
  • 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 /576 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.62ms] Passed 4 tests

Server-side resources used by AdBuilder WordPress Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.37 ▼11.47
Dashboard /wp-admin3.33 ▲0.0349.02 ▼6.91
Posts /wp-admin/edit.php3.38 ▲0.0349.52 ▼0.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.05 ▼7.29
Media Library /wp-admin/upload.php3.26 ▲0.0336.03 ▼0.80

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_adbuilderbiz_widget
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for AdBuilder WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.32 ▼0.031.76 ▲0.1443.00 ▼0.95
Dashboard /wp-admin2,195 ▲185.63 ▲0.0686.08 ▼13.1138.34 ▼8.77
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0443.76 ▲5.9540.20 ▲3.78
Add New Post /wp-admin/post-new.php1,526 ▼023.70 ▲0.49612.14 ▼63.5754.88 ▲1.68
Media Library /wp-admin/upload.php1,394 ▼64.18 ▲0.0298.58 ▼8.8045.47 ▼2.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_adbuilderbiz_widget
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adbuilder/adbuilderbiz.widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adbuilder/adbuilder.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No tags were found

adbuilder/adbuilder.php 69% from 13 tests

"AdBuilder WordPress Plugin" version 1.0.0....'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.2" instead of "7.0")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.3.2" instead of "5.2")
  • Description: Please don't use more than 140 characters for the plugin description (currently 259 characters long)
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0.0....")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171591

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
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

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