10% admin-builder

Code Review | Admin Builder

WordPress plugin Admin Builder scored10%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: 6.3.1
  • 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

60+ active /5,850 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had 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"?

Server metrics [RAM: ▼1.82MB] [CPU: ▼53.31ms] Passed 4 tests

This is a short check of server-side resources used by Admin Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.304.54 ▼34.38
Dashboard /wp-admin2.19 ▼1.127.24 ▼41.46
Posts /wp-admin/edit.php2.19 ▼1.177.15 ▼39.73
Add New Post /wp-admin/post-new.php2.19 ▼3.707.15 ▼97.68
Media Library /wp-admin/upload.php2.19 ▼1.045.64 ▼28.25

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲1,03715.48 ▲0.871.69 ▲0.1238.95 ▼0.62
Dashboard /wp-admin3,183 ▲9956.30 ▲1.42153.55 ▲45.0641.25 ▼2.94
Posts /wp-admin/edit.php3,095 ▲1,0063.71 ▲1.6873.81 ▲38.0934.74 ▼4.73
Add New Post /wp-admin/post-new.php2,349 ▲83024.17 ▲0.95678.11 ▲17.5338.38 ▼12.51
Media Library /wp-admin/upload.php2,231 ▲8435.01 ▲0.7896.73 ▼8.2445.39 ▲0.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > 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"?
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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
    • > 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/abEnqueue.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/admin-builder/inc/abMain.php:5
    • > 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 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 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
These attributes need your attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Screenshot #1 (setting page - import page) image missing
You can take inspiration from this 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
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 357 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-builder.php" instead of "admin_builder.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,219 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS682611,645
JavaScript62011301,347
PHP12104171939
SVG100288

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic 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
There were not PNG files found in your plugin