84% comparison-table-elementor

Code Review | Comparison Table Elementor

WordPress plugin Comparison Table Elementor scored84%from 54 tests.

About plugin

  • Plugin page: comparison-table-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 17, 2022
  • Latest release: Sep 9, 2023
  • Number of updates: 5
  • Update frequency: every 53.4 days
  • Top authors: dragwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.38ms] Passed 4 tests

This is a short check of server-side resources used by Comparison Table Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.96 ▼0.55
Dashboard /wp-admin3.38 ▲0.0846.28 ▼3.90
Posts /wp-admin/edit.php3.50 ▲0.1448.95 ▼5.48
Add New Post /wp-admin/post-new.php5.96 ▲0.0896.70 ▲2.14
Media Library /wp-admin/upload.php3.31 ▲0.0836.92 ▲0.43

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Comparison Table Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▲0.141.89 ▲0.0442.82 ▲0.85
Dashboard /wp-admin2,197 ▲205.63 ▲0.0994.29 ▲2.4846.28 ▼0.40
Posts /wp-admin/edit.php2,102 ▼12.02 ▼0.0240.65 ▼0.2237.91 ▼2.87
Add New Post /wp-admin/post-new.php1,528 ▼923.62 ▲5.52656.49 ▲22.5860.32 ▼11.38
Media Library /wp-admin/upload.php1,399 ▲54.21 ▼0.04100.87 ▲5.8347.11 ▲4.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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)
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/comparison-table-elementor/includes/Frontend/Widgets/Viola.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Frontend View), #2 (Admin View)
You can take inspiration from this readme.txt

comparison-table-elementor/comparison-table-elementor.php Passed 13 tests

The main PHP script in "Comparison Table Elementor" version 1.0.1 is automatically included on every request by WordPress
56 characters long description:
Excellent Comparison tables from Elementor Page Builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,873 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP154475752,121
CSS2181160
JSON20021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.90
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods65
▷ Static methods1929.23%
▷ Public methods5990.77%
▷ Protected methods34.62%
▷ Private methods34.62%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants11
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.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
There are no PNG files in this plugin