84% post-editing-toolbar

Code Review | Post Editing Toolbar

WordPress plugin Post Editing Toolbar scored84%from 54 tests.

About plugin

  • Plugin page: post-editing-toolbar
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2014
  • Latest release: Aug 17, 2014
  • Number of updates: 13
  • Update frequency: every 0.8 days
  • Top authors: glutaminefree (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,038 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Post Editing Toolbar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.79 ▼11.27
Dashboard /wp-admin3.32 ▲0.0149.78 ▼6.60
Posts /wp-admin/edit.php3.37 ▲0.0152.65 ▼0.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.45 ▼1.65
Media Library /wp-admin/upload.php3.24 ▲0.0134.36 ▼1.23

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Post Editing Toolbar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.181.88 ▲0.2943.94 ▲3.19
Dashboard /wp-admin2,195 ▲155.63 ▼0.0483.83 ▼12.2039.59 ▲1.31
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0438.38 ▼2.4834.42 ▲0.91
Add New Post /wp-admin/post-new.php6,228 ▲4,70026.16 ▲2.93857.19 ▲170.5352.81 ▼9.01
Media Library /wp-admin/upload.php1,400 ▼04.26 ▼0.02119.04 ▲10.3752.67 ▲6.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/post-editing-toolbar/post-editing-toolbar.php

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 Passed 29 tests

readme.txt Passed 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
3 plugin tags: toolbar, admin, post

post-editing-toolbar/post-editing-toolbar.php Passed 13 tests

This is the main PHP file of "Post Editing Toolbar" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
32 characters long description:
Toolbar for post editing screen.

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 plugin162 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19673
CSS10350
PHP291139

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.15
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin