83% three-column-screen-layout

Code Review | Three Column Screen Layout

WordPress plugin Three Column Screen Layout scored83%from 54 tests.

About plugin

  • Plugin page: three-column-scre...
  • Plugin version: 4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7
  • WordPress version: 6.3.1
  • First release: Sep 16, 2013
  • Latest release: Dec 12, 2016
  • Number of updates: 28
  • Update frequency: every 42.3 days
  • Top authors: Chad Hovell (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active /14,559 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.02MB] [CPU: ▼3.69ms] Passed 4 tests

An overview of server-side resources used by Three Column Screen Layout
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.68 ▼9.21
Dashboard /wp-admin3.33 ▲0.0245.33 ▼3.13
Posts /wp-admin/edit.php3.38 ▲0.0248.86 ▲6.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.94 ▼2.21
Media Library /wp-admin/upload.php3.25 ▲0.0234.73 ▼0.21

Server storage [IO: ▲0.04MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Three Column Screen Layout
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.134.75 ▲3.0642.15 ▲0.57
Dashboard /wp-admin2,206 ▲185.90 ▲1.06105.90 ▲1.1942.50 ▼2.19
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0439.22 ▲0.7735.03 ▼0.47
Add New Post /wp-admin/post-new.php1,516 ▼1723.47 ▲0.14658.72 ▲22.6247.78 ▼2.39
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0493.13 ▼2.7344.65 ▼0.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/three-column-screen-layout/three-column-screen-layout.php:28

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 90% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === three-column-screen-layout === )
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
  • Screenshots: A description for screenshot #5 is required in three-column-screen-layout/assets to your readme.txt
You can look at the official readme.txt

three-column-screen-layout/three-column-screen-layout.php Passed 13 tests

The principal PHP file in "Three Column Screen Layout" v. 4.2 is loaded by WordPress automatically on each request
63 characters long description:
Three, four and five column screen layouts for the post editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected68 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1151867
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods225.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icons.png0.75KB0.81KB0.00%