89% post-new-buttonsmenu-using-classic-editor-for-gutenberg

Code Review | Post-new buttons/menu using classic editor for Gutenberg

WordPress plugin Post-new buttons/menu using classic editor for Gutenberg scored89%from 54 tests.

About plugin

  • Plugin page: post-new-buttonsm...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 16, 2018
  • Latest release: Oct 24, 2018
  • Number of updates: 4
  • Update frequency: every 10.0 days
  • Top authors: hiroshisekiguchi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /610 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.00MB] [CPU: ▼2.76ms] Passed 4 tests

Server-side resources used by Post-new buttons/menu using classic editor for Gutenberg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.05 ▼1.18
Dashboard /wp-admin3.31 ▼0.0343.80 ▼13.64
Posts /wp-admin/edit.php3.36 ▲0.0148.34 ▲4.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.26 ▲1.45
Media Library /wp-admin/upload.php3.23 ▲0.0135.58 ▲2.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Post-new buttons/menu using classic editor for Gutenberg: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.11 ▼1.331.53 ▼0.2540.84 ▲1.20
Dashboard /wp-admin2,206 ▲575.90 ▲0.21110.51 ▲13.4241.93 ▼1.11
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0240.21 ▲5.2134.06 ▼6.56
Add New Post /wp-admin/post-new.php1,533 ▲1923.45 ▼0.06645.58 ▼15.8155.25 ▲1.11
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.0699.77 ▲2.6242.61 ▼5.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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 to be fixed: The official readme.txt might help

post-new-buttonsmenu-using-classic-editor-for-gutenberg/post-new-buttons-menu-using-classic-editor-for-gutenberg.php 92% from 13 tests

The main PHP script in "Post-new buttons/menu using classic editor for Gutenberg" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("post-new-buttonsmenu-using-classic-editor-for-gutenberg.php" instead of "post-new-buttons-menu-using-classic-editor-for-gutenberg.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
Good job! No executable or dangerous file extensions detected36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101336

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin