84% bootstrap-admin

Code Review | Bootstrap Admin

WordPress plugin Bootstrap Admin scored84%from 54 tests.

About plugin

  • Plugin page: bootstrap-admin
  • Plugin version: 1.16.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Sep 3, 2012
  • Latest release: Oct 26, 2014
  • Number of updates: 63
  • Update frequency: every 12.4 days
  • Top authors: aristath (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

10+ active /32,432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Bootstrap Admin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0238.52 ▼3.74
Dashboard /wp-admin3.29 ▼0.0150.87 ▼1.57
Posts /wp-admin/edit.php3.34 ▼0.0148.31 ▼3.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.38 ▼19.50
Media Library /wp-admin/upload.php3.21 ▼0.0139.54 ▲9.75

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Bootstrap Admin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,743 ▼313.54 ▼0.841.66 ▼0.0055.86 ▲12.79
Dashboard /wp-admin2,147 ▼415.34 ▼0.54104.93 ▼6.9230.56 ▼7.43
Posts /wp-admin/edit.php2,055 ▼342.68 ▲0.6338.72 ▲2.1021.88 ▼12.74
Add New Post /wp-admin/post-new.php1,695 ▲17623.00 ▼0.20593.78 ▼98.5164.03 ▲8.59
Media Library /wp-admin/upload.php1,339 ▼464.46 ▲0.26101.51 ▼12.3837.62 ▼7.32

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following
  • 1× 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/bootstrap-admin/bootstrap-admin.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (The Dashboard with the submenu popovers visible), #2 (New Post screenshot)
The official readme.txt might help

bootstrap-admin/bootstrap-admin.php Passed 13 tests

The principal PHP file in "Bootstrap Admin" v. 1.16.2 is loaded by WordPress automatically on each request
21 characters long description:
Bootstrap Admin Theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected22,047 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
CSS6666310,132
LESS438859685,953
PHP35783592,547
JavaScript8186531,885
HTML3174741,219
SVG100285
Markdown19026

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity124.80
▷ Minimum class complexity1.00
▷ Maximum class complexity316.00
Average method complexity4.97
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods156
▷ Static methods42.56%
▷ Public methods2817.95%
▷ Protected methods12882.05%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/chosen/chosen-sprite.png0.55KB0.70KB0.00%
assets/img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%
assets/img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
screenshot-1.png127.10KB46.61KB▼ 63.32%
screenshot-2.png81.33KB30.78KB▼ 62.15%