84% goodbye-block-editor

Code Review | Goodbye Block Editor

WordPress plugin Goodbye Block Editor scored84%from 54 tests.

About plugin

  • Plugin page: goodbye-block-editor
  • Plugin version: 1.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 28, 2018
  • Latest release: Aug 4, 2019
  • Number of updates: 12
  • Update frequency: every 37.7 days
  • Top authors: jobanhanspal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼11.09ms] Passed 4 tests

Analyzing server-side resources used by Goodbye Block Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.94 ▼5.70
Dashboard /wp-admin3.31 ▲0.0151.96 ▲0.27
Posts /wp-admin/edit.php3.36 ▲0.0050.19 ▲3.73
Add New Post /wp-admin/post-new.php3.39 ▼2.5058.87 ▼42.67
Media Library /wp-admin/upload.php3.23 ▲0.0046.80 ▲13.12

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Goodbye Block Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.181.79 ▼0.0842.48 ▼0.94
Dashboard /wp-admin2,206 ▲155.85 ▲0.95107.91 ▼7.2944.22 ▼4.47
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0439.36 ▲2.2233.86 ▲3.18
Add New Post /wp-admin/post-new.php3,091 ▲1,5777.83 ▼9.75183.16 ▼500.6466.49 ▲20.87
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.01104.85 ▼2.3843.47 ▼5.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/goodbye-block-editor/goodbye-block-editor.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

goodbye-block-editor/goodbye-block-editor.php Passed 13 tests

The primary PHP file in "Goodbye Block Editor" version 1.1 is used by WordPress to initiate all plugin functionality
32 characters long description:
Just active the plugin and voila

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1382

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected