89% admin-bar-site-id

Code Review | Admin Bar Site ID

WordPress plugin Admin Bar Site ID scored89%from 54 tests.

About plugin

  • Plugin page: admin-bar-site-id
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2023
  • Latest release: Mar 27, 2023
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: functionsfile (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /169 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
Installer ran successfully

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

This is a short check of server-side resources used by Admin Bar Site ID
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.26 ▲1.78
Dashboard /wp-admin3.31 ▲0.0146.71 ▼4.00
Posts /wp-admin/edit.php3.36 ▲0.0145.89 ▼1.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.05 ▼6.26
Media Library /wp-admin/upload.php3.23 ▲0.0137.17 ▲3.81

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Bar Site ID
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.131.74 ▼0.3942.52 ▼2.21
Dashboard /wp-admin2,206 ▲204.83 ▼1.08109.99 ▼30.5340.57 ▼16.22
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0644.59 ▲6.5538.93 ▲1.21
Add New Post /wp-admin/post-new.php1,533 ▼323.15 ▼0.07675.77 ▲6.8762.03 ▲0.28
Media Library /wp-admin/upload.php1,382 ▼94.20 ▲0.08101.89 ▲3.5043.91 ▲2.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: multisite, admin

admin-bar-site-id/plugin.php 62% from 13 tests

This is the main PHP file of "Admin Bar Site ID" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-bar-site-id.php" instead of "plugin.php")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.3" instead of "5.3.0")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "3.1.0")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1113030

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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
Namespaces1
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin