84% restore-columns

Code Review | Restore Columns

WordPress plugin Restore Columns scored84%from 54 tests.

About plugin

  • Plugin page: restore-columns
  • Plugin version: 1.00
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4
  • WordPress version: 6.3.1
  • First release: Jul 23, 2014
  • Latest release: Apr 2, 2020
  • Number of updates: 25
  • Update frequency: every 83.2 days
  • Top authors: Flector (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,414 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Restore Columns
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.21 ▼3.39
Dashboard /wp-admin3.31 ▼0.0455.26 ▼1.65
Posts /wp-admin/edit.php3.36 ▲0.0046.07 ▲0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.77 ▲6.43
Media Library /wp-admin/upload.php3.24 ▲0.0033.29 ▲2.06

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

Input-output and database impact 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_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Restore Columns: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.43 ▼0.221.88 ▲0.3237.82 ▼4.38
Dashboard /wp-admin2,221 ▲415.64 ▼0.0382.57 ▼1.7138.80 ▼4.67
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0738.62 ▼2.8336.56 ▲0.64
Add New Post /wp-admin/post-new.php1,526 ▼023.59 ▲0.09667.85 ▲9.3556.39 ▼4.57
Media Library /wp-admin/upload.php1,400 ▲64.23 ▲0.02104.73 ▲4.7048.51 ▲6.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 add_action() in wp-content/plugins/restore-columns/restore-columns.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: screen layout, screen options, dashboard, admin, dashboard columns

restore-columns/restore-columns.php Passed 13 tests

"Restore Columns" version 1.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
The plugin restores the possibility to select the number of columns displayed on the dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11711

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin