10% admin-builder

Code Review | Admin Builder

WordPress plugin Admin Builder scored 10% from 54 tests.

About plugin

  • Plugin page: admin-builder
  • Plugin version: 1.2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.9.2
  • First release: Apr 19, 2016
  • Latest release: Jan 23, 2017
  • Number of updates: 69
  • Update frequency: every 4.0 days
  • Top authors: rootabout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 5,470 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/admin-builder/inc/abMeta.php+119
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼2.39MB] [CPU: ▼345.11ms] Passed 4 tests

Server-side resources used by Admin Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.98 ▼1.544.54 ▼60.56
Dashboard /wp-admin2.00 ▼1.415.13 ▼29.16
Posts /wp-admin/edit.php2.00 ▼1.644.74 ▼33.32
Add New Post /wp-admin/post-new.php2.00 ▼4.975.85 ▼1,257.41
Media Library /wp-admin/upload.php2.00 ▼1.304.21 ▼21.41

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,101 ▲1,37918.36 ▲2.585.98 ▲0.062.38 ▲0.27
Dashboard /wp-admin4,194 ▲1,3368.00 ▲1.70162.98 ▲22.98163.18 ▼71.96
Posts /wp-admin/edit.php4,029 ▲1,3385.36 ▲2.1399.06 ▲33.28142.73 ▼2.97
Add New Post /wp-admin/post-new.php2,497 ▲83117.09 ▼3.42413.49 ▼85.74204.00 ▲33.33
Media Library /wp-admin/upload.php2,806 ▲1,1086.41 ▲0.89128.03 ▼8.33201.71 ▲15.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/admin-builder/inc/abMeta.php+119
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 9× 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/admin-builder/inc/abEnqueue.php:3
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/admin-builder/inc/abMeta.php on line 162
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-builder/inc/abEnqueue.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-builder/inc/ab.php:2
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/admin-builder/inc/abMeta.php on line 119
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-builder/inc/ab.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/admin-builder/inc/abMain.php:5
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/admin-builder/inc/abMeta.php on line 119
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/admin-builder/inc/abMeta.php on line 162

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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 require attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
  • Screenshots: Screenshot #1 (setting page - import page) image required
You can look at the official readme.txt

admin-builder/admin_builder.php 77% from 13 tests

"Admin Builder" version 1.2.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-builder.php" instead of "admin_builder.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 357 characters long)

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 plugin4,219 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS682611,645
JavaScript62011301,347
PHP12104171939
SVG100288

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity27.14
▷ Minimum class complexity6.00
▷ Maximum class complexity74.00
Average method complexity7.65
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2385.19%
▷ Protected methods00.00%
▷ Private methods414.81%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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
No PNG files were detected