100% admin-bar-publish

Code Review | Admin Bar Publish

WordPress plugin Admin Bar Publish scored 100% from 54 tests.

About plugin

  • Plugin page: admin-bar-publish
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.1
  • WordPress version: 5.9.2
  • First release: May 19, 2020
  • Latest release: May 21, 2020
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: eliorivero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 277 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Admin Bar Publish
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0460.01 ▲7.03
Dashboard /wp-admin3.44 ▲0.0333.11 ▼1.87
Posts /wp-admin/edit.php3.67 ▲0.0339.31 ▲1.05
Add New Post /wp-admin/post-new.php6.92 ▼0.0693.60 ▼1,186.10
Media Library /wp-admin/upload.php3.33 ▲0.0326.73 ▲0.22

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Bar Publish
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲5015.88 ▲0.097.25 ▲1.312.11 ▼0.16
Dashboard /wp-admin2,895 ▲446.12 ▲0.02120.24 ▼16.12157.36 ▼8.05
Posts /wp-admin/edit.php2,688 ▼33.25 ▲0.0163.60 ▼9.59147.34 ▼9.29
Add New Post /wp-admin/post-new.php1,752 ▲5421.03 ▼1.46453.48 ▼6.14161.30 ▼6.47
Media Library /wp-admin/upload.php1,698 ▼05.45 ▲0.02141.54 ▼14.94185.36 ▼8.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: post, page, publish

admin-bar-publish/admin-bar-publish.php 92% from 13 tests

The entry point to "Admin Bar Publish" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin146 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31161144
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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