89% walili-pricing-table

Code Review | Walili Pricing Table

WordPress plugin Walili Pricing Table scored89%from 54 tests.

About plugin

  • Plugin page: walili-pricing-table
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.0.3
  • WordPress version: 6.3.1
  • First release: Jan 1, 2021
  • Latest release: Oct 21, 2022
  • Number of updates: 6
  • Update frequency: every 109.7 days
  • Top authors: bibali1980 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /509 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲2.41ms] Passed 4 tests

This is a short check of server-side resources used by Walili Pricing Table
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.44 ▲4.50
Dashboard /wp-admin3.32 ▲0.0154.22 ▲1.45
Posts /wp-admin/edit.php3.37 ▲0.0152.31 ▲0.38
Add New Post /wp-admin/post-new.php5.90 ▲0.01102.03 ▲5.46
Media Library /wp-admin/upload.php3.24 ▲0.0136.32 ▲3.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Walili Pricing Table
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.26 ▼1.112.18 ▲0.2144.84 ▼0.77
Dashboard /wp-admin2,224 ▲246.02 ▲0.2096.48 ▼16.3637.18 ▼8.76
Posts /wp-admin/edit.php2,100 ▼32.15 ▲0.1037.38 ▼2.7938.91 ▼0.56
Add New Post /wp-admin/post-new.php1,543 ▲1223.36 ▲0.40614.74 ▼16.0066.12 ▲8.10
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.1299.04 ▼4.7450.62 ▲1.87

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
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Displaying the pricing table (front view)), #2 (Creating a pricing table (admin view))
You can look at the official readme.txt

walili-pricing-table/walili-pricing-table.php 92% from 13 tests

"Walili Pricing Table" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,845 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3167601,802
CSS17043

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity15.50
▷ Minimum class complexity2.00
▷ Maximum class complexity29.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1275.00%
▷ Protected methods318.75%
▷ Private methods16.25%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin