84% plugins-and-themes-in-admin-bar

Code Review | Plugins and Themes in Admin Bar

WordPress plugin Plugins and Themes in Admin Bar scored84%from 54 tests.

About plugin

  • Plugin page: plugins-and-theme...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Jul 24, 2013
  • Latest release: Apr 1, 2016
  • Number of updates: 5
  • Update frequency: every 196.4 days
  • Top authors: ravidreams (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,419 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.03MB] [CPU: ▼6.62ms] Passed 4 tests

Analyzing server-side resources used by Plugins and Themes in Admin Bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0349.01 ▲7.03
Dashboard /wp-admin3.33 ▲0.0346.98 ▼5.53
Posts /wp-admin/edit.php3.38 ▲0.0248.71 ▲4.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.26 ▼23.11
Media Library /wp-admin/upload.php3.25 ▲0.0236.44 ▼2.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugins and Themes in Admin Bar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.29 ▼1.081.72 ▲0.0142.42 ▲0.23
Dashboard /wp-admin2,255 ▲705.89 ▲1.01100.55 ▼1.8238.35 ▼5.71
Posts /wp-admin/edit.php2,135 ▲462.02 ▲0.0235.60 ▼0.6431.80 ▼5.35
Add New Post /wp-admin/post-new.php1,548 ▲2917.47 ▼5.93672.71 ▼29.2457.49 ▲6.56
Media Library /wp-admin/upload.php1,434 ▲464.24 ▲0.0595.61 ▼3.9246.55 ▲3.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugins-and-themes-in-admin-bar/plugins-and-themes-in-admin-bar.php:96

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: admin bar, shortcuts, menus, menu, wordpress admin...

plugins-and-themes-in-admin-bar/plugins-and-themes-in-admin-bar.php Passed 13 tests

The main file in "Plugins and Themes in Admin Bar" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Adds plugin and theme menus in admin bar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152468

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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 were not PNG files found in your plugin