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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.30 | 4.54 ▼34.38 |
Dashboard /wp-admin | 2.19 ▼1.12 | 7.24 ▼41.46 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 7.15 ▼39.73 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 7.15 ▼97.68 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲1,037 | 15.48 ▲0.87 | 1.69 ▲0.12 | 38.95 ▼0.62 |
Dashboard /wp-admin | 3,183 ▲995 | 6.30 ▲1.42 | 153.55 ▲45.06 | 41.25 ▼2.94 |
Posts /wp-admin/edit.php | 3,095 ▲1,006 | 3.71 ▲1.68 | 73.81 ▲38.09 | 34.74 ▼4.73 |
Add New Post /wp-admin/post-new.php | 2,349 ▲830 | 24.17 ▲0.95 | 678.11 ▲17.53 | 38.38 ▼12.51 |
Media Library /wp-admin/upload.php | 2,231 ▲843 | 5.01 ▲0.78 | 96.73 ▼8.24 | 45.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
- > PHP Warning
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 82 | 61 | 1,645 |
JavaScript | 6 | 201 | 130 | 1,347 |
PHP | 12 | 104 | 171 | 939 |
SVG | 1 | 0 | 0 | 288 |
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 code | 0.53 |
Average class complexity | 27.14 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 7.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 85.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.81% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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