73% qualigo-widget

Code Review | Qualigo Widget

WordPress plugin Qualigo Widget scored 73% from 54 tests.

About plugin

  • Plugin page: qualigo-widget
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.1
  • WordPress version: 5.8.1
  • First release: Jan 6, 2020
  • Latest release: Jan 6, 2020
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: qualigo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 199 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.63MB] [CPU: ▼187.88ms] Passed 4 tests

A check of server-side resources used by Qualigo Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.00 ▼0.728.86 ▼11.08
Dashboard /wp-admin2.02 ▼1.0310.32 ▼39.23
Posts /wp-admin/edit.php2.02 ▼1.0910.18 ▼33.41
Add New Post /wp-admin/post-new.php2.02 ▼3.419.28 ▼637.10
Media Library /wp-admin/upload.php2.02 ▼0.9910.64 ▼41.77

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
widget_qualigo_widget

Browser metrics Passed 4 tests

Checking browser requirements for Qualigo Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.72 ▼0.237.85 ▼0.8348.29 ▼0.70
Dashboard /wp-admin2,970 ▲395.94 ▼0.05136.46 ▼27.54112.24 ▼9.22
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0065.32 ▼2.4883.38 ▼2.14
Add New Post /wp-admin/post-new.php1,872 ▲37219.16 ▲0.62370.36 ▲1.53105.56 ▼4.82
Media Library /wp-admin/upload.php1,810 ▲35.02 ▲0.01152.12 ▼15.41114.08 ▼8.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in Qualigo_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_qualigo_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/qualigo-widget/qualigo_widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === qualigo-widget === )
  • Screenshots: Screenshot #1 (/assets/QualigoWidget01.png) image required
Please take inspiration from this readme.txt

qualigo-widget/qualigo_widget.php 85% from 13 tests

The principal PHP file in "Qualigo Widget" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("qualigo-widget.php" instead of "qualigo_widget.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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 detected309 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1169164
PO File2540145

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected