78% web4x-product-comparison-table

Code Review | Web4x Product Comparison Table

WordPress plugin Web4x Product Comparison Table scored78%from 54 tests.

About plugin

  • Plugin page: web4x-product-com...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Nov 13, 2020
  • Latest release: Mar 20, 2021
  • Number of updates: 11
  • Update frequency: every 11.7 days
  • Top authors: nadeemak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /689 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.26ms] Passed 4 tests

An overview of server-side resources used by Web4x Product Comparison Table
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.81 ▲1.66
Dashboard /wp-admin3.39 ▲0.0549.51 ▼18.62
Posts /wp-admin/edit.php3.51 ▲0.1655.17 ▲10.13
Add New Post /wp-admin/post-new.php5.98 ▲0.1084.96 ▼15.86
Media Library /wp-admin/upload.php3.30 ▲0.0731.57 ▼4.23
All Table /wp-admin/edit.php?post_type=web4xpct3.3738.34
Add New Table /wp-admin/post-new.php?post_type=web4xpct3.3542.83

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Web4x Product Comparison Table
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲22714.97 ▲1.701.96 ▼3.0142.88 ▼0.96
Dashboard /wp-admin2,371 ▲1806.43 ▲1.53129.83 ▲21.2540.35 ▼6.97
Posts /wp-admin/edit.php2,283 ▲1973.31 ▲1.2651.93 ▲14.3432.77 ▼5.48
Add New Post /wp-admin/post-new.php1,541 ▲1823.33 ▼0.05650.30 ▼12.1437.51 ▼14.73
Media Library /wp-admin/upload.php1,410 ▲254.16 ▼0.0584.04 ▼16.6644.23 ▼4.12
All Table /wp-admin/edit.php?post_type=web4xpct1,2543.3151.4127.39
Add New Table /wp-admin/post-new.php?post_type=web4xpct1,7073.7462.1636.93

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/web4x-product-comparison-table/web4x-product-comparison-table.php
  • 2× 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/web4x-product-comparison-table/Inc/web4x-add-post-type.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web4x-product-comparison-table/Inc/scripts.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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 your attention:
  • Requires php: Version format is invalid
The official readme.txt might help

web4x-product-comparison-table/web4x-product-comparison-table.php Passed 13 tests

The main PHP script in "Web4x Product Comparison Table" version 1.3.0 is automatically included on every request by WordPress
41 characters long description:
Create stuning table for Amazon products.

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 plugin1,121 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS2676765
PHP55845299
JavaScript1151657

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin