84% full-width-editor

Code Review | Full Width Editor

WordPress plugin Full Width Editor scored84%from 54 tests.

About plugin

  • Plugin page: full-width-editor
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 19, 2019
  • Latest release: Feb 20, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: wickywills (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /638 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.95ms] Passed 4 tests

An overview of server-side resources used by Full Width Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.21 ▲1.00
Dashboard /wp-admin3.31 ▲0.0045.84 ▼5.82
Posts /wp-admin/edit.php3.36 ▲0.0051.44 ▼1.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.39 ▼13.45
Media Library /wp-admin/upload.php3.23 ▲0.0039.81 ▲2.47

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

A short overview of filesystem and database impact
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_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Full Width Editor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8113.58 ▼0.852.03 ▲0.1644.74 ▲0.30
Dashboard /wp-admin2,217 ▲145.85 ▲0.96105.34 ▼8.4936.40 ▼3.78
Posts /wp-admin/edit.php2,105 ▲52.01 ▲0.0137.37 ▼1.8331.61 ▼2.05
Add New Post /wp-admin/post-new.php1,533 ▼323.20 ▲0.03602.95 ▼58.4165.74 ▲3.31
Media Library /wp-admin/upload.php1,402 ▲24.25 ▲0.04117.79 ▲4.1247.97 ▼1.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 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/full-width-editor/full-width-editor.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

full-width-editor/full-width-editor.php Passed 13 tests

The principal PHP file in "Full Width Editor" v. 1.0.0 is loaded by WordPress automatically on each request
36 characters long description:
Set block editor width to full width

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
Good job! No executable or dangerous file extensions detected11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131111

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin