89% ovn-category-list-widget-for-elementor

Code Review | OVN Category List Widget for Elementor

WordPress plugin OVN Category List Widget for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: ovn-category-list...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: Jul 15, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: outsourcingvn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /342 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by OVN Category List Widget for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.34 ▼8.23
Dashboard /wp-admin3.31 ▼0.0345.52 ▼12.96
Posts /wp-admin/edit.php3.36 ▲0.0142.37 ▼11.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.50 ▼21.10
Media Library /wp-admin/upload.php3.23 ▲0.0035.04 ▲0.94

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by OVN Category List Widget for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.75 ▲0.781.77 ▲0.2742.83 ▲4.56
Dashboard /wp-admin2,195 ▲185.63 ▼0.0490.17 ▲2.6143.80 ▲0.43
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0237.49 ▼3.9936.39 ▼2.95
Add New Post /wp-admin/post-new.php1,528 ▲223.17 ▲0.09599.37 ▼58.6865.40 ▼13.42
Media Library /wp-admin/upload.php1,403 ▼04.26 ▲0.0797.36 ▼10.9642.66 ▼0.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

ovn-category-list-widget-for-elementor/Category_List_Widget_for_Elementor.php 69% from 13 tests

This is the main PHP file of "OVN Category List Widget for Elementor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("ovn-category-list-widget-for-elementor.php" instead of "Category_List_Widget_for_Elementor.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.2")
  • Domain Path: The domain path folder was not found ("/languages")

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
There were no executable files found in this plugin96 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2221495
Markdown1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods233.33%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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