84% editor-buttons-simplified

Code Review | Editor Buttons Simplified

WordPress plugin Editor Buttons Simplified scored 84% from 54 tests.

About plugin

  • Plugin page: editor-buttons-si...
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8
  • WordPress version: 6.3.1
  • First release: May 17, 2015
  • Latest release: Nov 5, 2016
  • Number of updates: 14
  • Update frequency: every 61.5 days
  • Top authors: akibjorklund (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Editor Buttons Simplified
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.51 ▼3.61
Dashboard /wp-admin3.32 ▲0.0255.02 ▲2.98
Posts /wp-admin/edit.php3.38 ▲0.0256.67 ▼8.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.28 ▼10.45
Media Library /wp-admin/upload.php3.25 ▲0.0236.70 ▲2.43

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Editor Buttons Simplified
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.141.59 ▼0.1453.66 ▲10.63
Dashboard /wp-admin2,203 ▲125.82 ▼0.04131.41 ▲18.9549.65 ▼5.43
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0344.46 ▲4.2342.67 ▲1.90
Add New Post /wp-admin/post-new.php1,536 ▲12523.16 ▲5.08681.91 ▼131.6062.35 ▼5.80
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.03107.94 ▼7.5447.97 ▼0.08

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editor-buttons-simplified/editor-buttons-simplified.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === editor-buttons-simplified === )
You can take inspiration from this readme.txt

editor-buttons-simplified/editor-buttons-simplified.php Passed 13 tests

The main file in "Editor Buttons Simplified" v. 0.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
103 characters long description:
Makes adjustments to TinyMCE editor buttons to make it more usable and not contain any harmful buttons.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin109 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2216245
JavaScript18743
JSON10021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/dots.png1.25KB0.52KB▼ 58.01%