10% zoopdoop-admin-bar-comments-menu

Code Review | Zoopdoop Admin Bar Comments Menu

WordPress plugin Zoopdoop Admin Bar Comments Menu scored10%from 54 tests.

About plugin

  • Plugin page: zoopdoop-admin-ba...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2012
  • Latest release: Oct 14, 2012
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: zoopdoop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/zoopdoop-admin-bar-comments-menu/zoopdoop-adminbar-comments-menu.php+15
    Undefined variable: wp_version

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.53ms] Passed 4 tests

Server-side resources used by Zoopdoop Admin Bar Comments Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.24 ▼14.41
Dashboard /wp-admin3.33 ▲0.0241.20 ▼3.99
Posts /wp-admin/edit.php3.38 ▲0.0245.83 ▲1.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0277.38 ▼11.18
Media Library /wp-admin/upload.php3.25 ▲0.0232.82 ▼0.54

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Zoopdoop Admin Bar Comments Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.22 ▼1.161.56 ▼0.2841.83 ▼3.56
Dashboard /wp-admin2,218 ▲304.87 ▼0.94112.65 ▲11.3742.03 ▲2.15
Posts /wp-admin/edit.php2,107 ▲182.01 ▼0.0439.59 ▲4.1734.65 ▼4.58
Add New Post /wp-admin/post-new.php1,551 ▲3723.23 ▲5.59601.24 ▼4.5656.24 ▼8.21
Media Library /wp-admin/upload.php1,406 ▲184.19 ▲0.0697.38 ▼0.1042.13 ▼0.35

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
Please fix the following
  • 2× 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/zoopdoop-admin-bar-comments-menu/zoopdoop-adminbar-comments-menu.php:19
    • > PHP Notice
      Undefined variable: wp_version in wp-content/plugins/zoopdoop-admin-bar-comments-menu/zoopdoop-adminbar-comments-menu.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === zoopdoop-admin-bar-comments-menu === )
The official readme.txt is a good inspiration

zoopdoop-admin-bar-comments-menu/zoopdoop-adminbar-comments-menu.php 92% from 13 tests

This is the main PHP file of "Zoopdoop Admin Bar Comments Menu" version 1.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: The principal plugin file should be the same as the plugin slug ("zoopdoop-admin-bar-comments-menu.php" instead of "zoopdoop-adminbar-comments-menu.php")

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
Success! There were no dangerous files found in this plugin68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161568

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin