84% post-edit-toolbar

Code Review | Post Edit Toolbar

WordPress plugin Post Edit Toolbar scored84%from 54 tests.

About plugin

  • Plugin page: post-edit-toolbar
  • Plugin version: 1.4.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.4
  • WordPress version: 6.3.1
  • First release: Apr 22, 2014
  • Latest release: Dec 18, 2015
  • Number of updates: 61
  • Update frequency: every 9.9 days
  • Top authors: greghl (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

100+ active /4,683 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.06MB] [CPU: ▲1.83ms] Passed 4 tests

This is a short check of server-side resources used by Post Edit Toolbar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0756.29 ▲12.44
Dashboard /wp-admin3.36 ▲0.0653.23 ▼1.17
Posts /wp-admin/edit.php3.42 ▲0.0657.19 ▲3.16
Add New Post /wp-admin/post-new.php5.95 ▲0.06100.00 ▼0.54
Media Library /wp-admin/upload.php3.30 ▲0.0842.70 ▲5.88

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

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

Browser metrics Passed 4 tests

Post Edit Toolbar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15314.35 ▼0.011.85 ▲0.0139.49 ▼4.10
Dashboard /wp-admin2,245 ▲715.64 ▲0.0989.08 ▼37.7937.40 ▼16.66
Posts /wp-admin/edit.php2,153 ▲562.04 ▲0.0941.02 ▲4.8135.17 ▼1.09
Add New Post /wp-admin/post-new.php1,564 ▲3823.12 ▼0.38671.78 ▲57.4352.85 ▼5.75
Media Library /wp-admin/upload.php1,450 ▲504.19 ▲0.00104.93 ▼3.7646.24 ▲1.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/post-edit-toolbar/post-edit-toolbar.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt is a good inspiration

post-edit-toolbar/post-edit-toolbar.php 92% from 13 tests

Analyzing the main PHP file in "Post Edit Toolbar" version 1.4.12
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin296 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24981296

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions10
▷ Named functions10100.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
No PNG files were detected