90% coexist-with-gutenberg

Code Review | Coexist with Gutenberg

WordPress plugin Coexist with Gutenberg scored90%from 54 tests.

About plugin

  • Plugin page: coexist-with-gute...
  • 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: Oct 18, 2018
  • Latest release: Oct 24, 2018
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /570 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.55ms] Passed 4 tests

Server-side resources used by Coexist with Gutenberg
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.30 ▼2.59
Dashboard /wp-admin3.34 ▲0.0345.66 ▼9.11
Posts /wp-admin/edit.php3.39 ▲0.0345.31 ▼1.35
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.08 ▲3.74
Media Library /wp-admin/upload.php3.26 ▲0.0336.95 ▲2.86

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coexist with Gutenberg
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.351.63 ▼0.0739.07 ▼4.14
Dashboard /wp-admin2,197 ▲65.83 ▲0.75104.91 ▼17.8439.76 ▼6.17
Posts /wp-admin/edit.php2,089 ▲32.03 ▲0.0341.58 ▲6.7135.97 ▲0.50
Add New Post /wp-admin/post-new.php1,514 ▼1417.88 ▼0.45659.34 ▲38.1065.76 ▲17.43
Media Library /wp-admin/upload.php1,391 ▲94.21 ▲0.0299.59 ▲3.6941.92 ▼1.95

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

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

coexist-with-gutenberg/coexist-with-gutenberg.php Passed 13 tests

The main PHP script in "Coexist with Gutenberg" version 1.0 is automatically included on every request by WordPress
40 characters long description:
Add UI to coexist with Gutenberg happily

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
There were no executable files found in this plugin124 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12657124

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.78
▷ Minimum method complexity2.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected