84% post-editor-buttons-fork

Code Review | Post Editor Buttons Fork

WordPress plugin Post Editor Buttons Fork scored84%from 54 tests.

About plugin

  • Plugin page: post-editor-butto...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6
  • WordPress version: 6.3.1
  • First release: May 23, 2011
  • Latest release: Oct 1, 2016
  • Number of updates: 27
  • Update frequency: every 72.5 days
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /13,237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.53ms] Passed 4 tests

An overview of server-side resources used by Post Editor Buttons Fork
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0454.43 ▲11.04
Dashboard /wp-admin3.35 ▲0.0550.33 ▼2.63
Posts /wp-admin/edit.php3.40 ▲0.0554.52 ▲1.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0590.54 ▼7.30
Media Library /wp-admin/upload.php3.27 ▲0.0538.59 ▼1.33
Post Editor Buttons /wp-admin/options-general.php?page=peb3.2834.38

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Post Editor Buttons Fork
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.37 ▼1.326.12 ▲4.1352.99 ▲7.77
Dashboard /wp-admin2,225 ▲194.83 ▼0.05107.46 ▲1.3940.99 ▼2.31
Posts /wp-admin/edit.php2,104 ▲11.96 ▼0.0941.48 ▲1.5138.41 ▲3.99
Add New Post /wp-admin/post-new.php1,554 ▲922.86 ▼0.22606.51 ▼52.6854.73 ▲0.32
Media Library /wp-admin/upload.php1,398 ▼24.23 ▼0.0295.87 ▼16.1544.49 ▼3.25
Post Editor Buttons /wp-admin/options-general.php?page=peb1,3332.0224.4335.49

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 did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/post-editor-buttons-fork/post-editor-buttons.php:27

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 on the user side

Optimizations

Plugin configuration 96% from 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: post toolbar, post editor, buttons, toolbar buttons, add buttons...

post-editor-buttons-fork/post-editor-buttons.php 92% from 13 tests

The main PHP file in "Post Editor Buttons Fork" ver. 2.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("post-editor-buttons-fork.php" instead of "post-editor-buttons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin217 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP144101190
JavaScript17027

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.09
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%
Functions14
▷ Named functions14100.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
No PNG files were detected