84% page-editor-full-width

Code Review | Page Editor Full Width Option

WordPress plugin Page Editor Full Width Option scored84%from 54 tests.

About plugin

  • Plugin page: page-editor-full-...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.7
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: Mar 10, 2021
  • Number of updates: 8
  • Update frequency: every 60.1 days
  • Top authors: harmancheema (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,411 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.48ms] Passed 4 tests

An overview of server-side resources used by Page Editor Full Width Option
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.31 ▼6.61
Dashboard /wp-admin3.31 ▼0.0441.45 ▼18.49
Posts /wp-admin/edit.php3.36 ▲0.0044.07 ▼6.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.22 ▼14.66
Media Library /wp-admin/upload.php3.23 ▲0.0034.41 ▼0.59

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Page Editor Full Width Option
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.29 ▼1.271.80 ▼0.0944.98 ▲0.68
Dashboard /wp-admin2,208 ▲164.85 ▼0.10113.10 ▲1.0842.89 ▼3.28
Posts /wp-admin/edit.php2,091 ▲22.02 ▲0.0040.68 ▼1.2335.23 ▲3.00
Add New Post /wp-admin/post-new.php1,535 ▲1123.14 ▼0.13593.13 ▼58.3252.56 ▼4.16
Media Library /wp-admin/upload.php1,387 ▼44.19 ▼0.07100.66 ▲3.2140.62 ▼2.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-editor-full-width/hsc-full-width-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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: blocks, editor, gutenberg, page editor, page builder...

page-editor-full-width/hsc-full-width-editor.php 85% from 13 tests

The entry point to "Page Editor Full Width Option" version 1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("page-editor-full-width.php" instead of "hsc-full-width-editor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12814

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected