84% bring-back-admin-menu-seperators

Code Review | Bring Back Admin Menu Separators

WordPress plugin Bring Back Admin Menu Separators scored84%from 54 tests.

About plugin

  • Plugin page: bring-back-admin-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2014
  • Latest release: Jan 15, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: bej-soan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Bring Back Admin Menu Separators
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.39 ▼3.01
Dashboard /wp-admin3.31 ▲0.0150.61 ▼7.75
Posts /wp-admin/edit.php3.36 ▲0.0056.17 ▲2.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.68 ▼15.31
Media Library /wp-admin/upload.php3.24 ▲0.0043.00 ▲4.43

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bring Back Admin Menu Separators
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.23 ▼0.051.79 ▼0.2242.71 ▼2.58
Dashboard /wp-admin2,197 ▲235.65 ▼0.0095.75 ▼13.2539.83 ▼4.78
Posts /wp-admin/edit.php2,105 ▲52.09 ▲0.0741.02 ▲3.0735.34 ▲0.89
Add New Post /wp-admin/post-new.php1,528 ▼023.02 ▼0.10696.19 ▲0.5650.86 ▼7.91
Media Library /wp-admin/upload.php1,405 ▲54.17 ▼0.0498.35 ▼21.1044.28 ▼5.20

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 successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bring-back-admin-menu-seperators/bringbackseparators.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: backend, admin, wordpress 38, menu, separators

bring-back-admin-menu-seperators/bringbackseparators.php 92% from 13 tests

This is the main PHP file of "Bring Back Admin Menu Separators" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bring-back-admin-menu-seperators.php" instead of "bringbackseparators.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121015

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.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin