83% wpdevs-classic-editor-widgets

Code Review | WPDevs Classic Editor & Widgets

WordPress plugin WPDevs Classic Editor & Widgets scored83%from 54 tests.

About plugin

  • Plugin page: wpdevs-classic-ed...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: May 20, 2023
  • Latest release: May 24, 2023
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: wpdevsxyz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.60MB] [CPU: ▼10.92ms] Passed 4 tests

A check of server-side resources used by WPDevs Classic Editor & Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.74 ▼5.61
Dashboard /wp-admin3.33 ▲0.0353.27 ▲1.42
Posts /wp-admin/edit.php3.38 ▲0.0259.51 ▲5.62
Add New Post /wp-admin/post-new.php3.41 ▼2.4863.97 ▼41.87
Media Library /wp-admin/upload.php3.25 ▲0.0239.04 ▲2.38

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

Browser metrics Passed 4 tests

A check of browser resources used by WPDevs Classic Editor & Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.341.73 ▲0.1445.44 ▲0.98
Dashboard /wp-admin2,192 ▲155.52 ▼0.0384.28 ▼9.8738.57 ▼4.66
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0437.23 ▼1.3932.88 ▼3.84
Add New Post /wp-admin/post-new.php3,100 ▲1,5637.83 ▼10.28185.09 ▼508.1568.21 ▼4.69
Media Library /wp-admin/upload.php1,397 ▲64.21 ▲0.04104.52 ▼0.2347.48 ▲1.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • wpdevs_classic_editor_settings
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just 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/wpdevs-classic-editor-widgets/wpdevs-classic-editor-widgets.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: traditional editor, classic editor, disable gutenberg, classic widgets, traditional widgets

wpdevs-classic-editor-widgets/wpdevs-classic-editor-widgets.php 77% from 13 tests

"WPDevs Classic Editor & Widgets" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 215 characters long)

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 detected401 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP1181381

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin