84% bossadmin

Code Review | BossAdmin

WordPress plugin BossAdmin scored 84% from 54 tests.

About plugin

  • Plugin page: bossadmin
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: Jun 6, 2014
  • Number of updates: 12
  • Update frequency: every 42.4 days
  • Top authors: The-Boss (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.37ms] Passed 4 tests

A check of server-side resources used by BossAdmin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.09 ▼3.35
Dashboard /wp-admin3.31 ▲0.0045.87 ▼4.26
Posts /wp-admin/edit.php3.36 ▲0.0045.81 ▲2.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.84 ▼8.18
Media Library /wp-admin/upload.php3.23 ▲0.0036.07 ▲4.24

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for BossAdmin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.19 ▼1.194.26 ▲2.5540.99 ▼8.42
Dashboard /wp-admin2,208 ▲234.84 ▼1.01101.80 ▼1.1142.79 ▼1.18
Posts /wp-admin/edit.php2,088 ▲22.00 ▼0.0435.50 ▼2.5733.98 ▼0.74
Add New Post /wp-admin/post-new.php1,535 ▲1623.43 ▲0.09615.25 ▲21.9653.82 ▲3.64
Media Library /wp-admin/upload.php1,390 ▲84.24 ▲0.05101.34 ▲1.1142.60 ▲0.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bossadmin/bossadmin.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: color, admin, scheme, dark

bossadmin/bossadmin.php 92% from 13 tests

The entry point to "BossAdmin" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/langs/")

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
No dangerous file extensions were detected336 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1664328
PHP112308

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin