93% classic-widgets

Code Review | Classic Widgets

WordPress plugin Classic Widgets scored 93% from 54 tests.

About plugin

  • Plugin page: classic-widgets
  • Plugin version: 0.3
  • PHP compatiblity: 5.6 or later+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 5.8.1
  • First release: May 5, 2021
  • Latest release: Jan 25, 2022
  • Number of updates: 7
  • Update frequency: every 37.9 days
  • Top authors: hellofromTonya (71.43%)azaozz (42.86%)

Code review

54 tests

User reviews

199 reviews

Install metrics

1,000,000+ active / 1,697,610 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Classic Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0026.45 ▲1.07
Dashboard /wp-admin3.06 ▼0.0040.45 ▲0.76
Posts /wp-admin/edit.php3.12 ▲0.0132.37 ▲2.03
Add New Post /wp-admin/post-new.php5.43 ▼0.0177.42 ▼562.83
Media Library /wp-admin/upload.php3.01 ▲0.0022.33 ▼4.37

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Classic Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,696 ▲9515.91 ▲0.115.19 ▼0.6075.77 ▲0.97
Dashboard /wp-admin2,930 ▲316.16 ▼0.02126.77 ▼0.34164.51 ▼11.70
Posts /wp-admin/edit.php2,737 ▼63.23 ▼0.0061.80 ▲0.79136.35 ▼0.55
Add New Post /wp-admin/post-new.php3,743 ▼019.19 ▼0.02415.77 ▼48.17165.68 ▲2.64
Media Library /wp-admin/upload.php1,752 ▼05.50 ▼0.03157.32 ▲16.05184.66 ▼0.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/classic-widgets/classic-widgets.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

classic-widgets/classic-widgets.php 85% from 13 tests

The main file in "Classic Widgets" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "5.6 or later")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin326 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP12256

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected