89% restore-classic-widgets-and-classic-post-editor

Code Review | Restore Classic Widgets and Classic Post Editor

WordPress plugin Restore Classic Widgets and Classic Post Editor scored89%from 54 tests.

About plugin

  • Plugin page: restore-classic-w...
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Aug 12, 2021
  • Latest release: Aug 12, 2021
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: sitestudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /411 total downloads


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
Installer ran successfully

Server metrics [RAM: ▼0.52MB] [CPU: ▼13.14ms] Passed 4 tests

This is a short check of server-side resources used by Restore Classic Widgets and Classic Post Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.80 ▼0.44
Dashboard /wp-admin3.39 ▲0.0949.19 ▼4.98
Posts /wp-admin/edit.php3.51 ▲0.1548.95 ▼3.25
Add New Post /wp-admin/post-new.php3.54 ▼2.3560.38 ▼43.90
Media Library /wp-admin/upload.php3.32 ▲0.0939.18 ▲1.68
Classic Editor And Widget Settings /wp-admin/options-general.php?page=classic-widgets-and-post-editor-options3.2833.94

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Restore Classic Widgets and Classic Post Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.29 ▼0.081.78 ▼0.0643.13 ▼3.36
Dashboard /wp-admin2,193 ▲165.55 ▲0.0286.66 ▼6.4140.79 ▼2.18
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0439.40 ▲0.7532.23 ▼10.33
Add New Post /wp-admin/post-new.php3,104 ▲1,5787.83 ▼16.03181.24 ▼499.2269.47 ▲11.49
Media Library /wp-admin/upload.php1,398 ▼54.20 ▼0.0296.09 ▼1.8443.67 ▼4.39
Classic Editor And Widget Settings /wp-admin/options-general.php?page=classic-widgets-and-post-editor-options8342.0327.7127.65

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

restore-classic-widgets-and-classic-post-editor/restore_classic_widgets_and_classic_post_editor.php 85% from 13 tests

"Restore Classic Widgets and Classic Post Editor" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("restore-classic-widgets-and-classic-post-editor.php" instead of "restore_classic_widgets_and_classic_post_editor.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin785 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PO File2202081

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity15.83
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods2043.48%
▷ Public methods4495.65%
▷ Protected methods00.00%
▷ Private methods24.35%
▷ Named functions266.67%
▷ Anonymous functions133.33%
▷ 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