80% elfsight-pricing-table

Code Review | Pricing Table

WordPress plugin Pricing Table scored80%from 54 tests.

About plugin

  • Plugin page: elfsight-pricing-...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.0
  • WordPress version: 6.3.1
  • First release: Oct 9, 2017
  • Latest release: Feb 6, 2019
  • Number of updates: 13
  • Update frequency: every 37.3 days
  • Top authors: elfsight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,519 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.28MB] [CPU: ▼7.60ms] Passed 4 tests

An overview of server-side resources used by Pricing Table
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3039.10 ▲1.41
Dashboard /wp-admin3.60 ▲0.2543.67 ▼15.81
Posts /wp-admin/edit.php3.71 ▲0.3544.30 ▼0.21
Add New Post /wp-admin/post-new.php6.18 ▲0.2977.97 ▼14.76
Media Library /wp-admin/upload.php3.52 ▲0.2935.44 ▲0.38

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 43 new files
Database: 1 new table, 6 new options
New tables
wp_elfsight_pricing_table_widgets
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Pricing Table: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.72 ▲0.371.75 ▲0.2143.77 ▲3.57
Dashboard /wp-admin2,213 ▲395.58 ▲0.0479.28 ▼5.6179.97 ▲38.72
Posts /wp-admin/edit.php2,115 ▲152.00 ▲0.0332.81 ▼0.9834.00 ▼4.15
Add New Post /wp-admin/post-new.php1,692 ▲16421.85 ▼1.31745.77 ▲61.7960.41 ▲3.95
Media Library /wp-admin/upload.php1,415 ▲154.18 ▼0.0594.68 ▼11.6973.97 ▲27.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_elfsight_pricing_table_widgets
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: pricing, pricing table

elfsight-pricing-table/elfsight-pricing-table.php Passed 13 tests

"Pricing Table" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Increase your website conversion with compelling pricing table

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
Success! There were no dangerous files found in this plugin2,062 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON1001,284
PHP1523810759
HTML10014
JavaScript49354
CSS1371

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity20.67
▷ Minimum class complexity14.00
▷ Maximum class complexity33.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
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

PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-remove-dark-small.png1.13KB0.32KB▼ 71.55%
assets/img/logo.png2.06KB1.61KB▼ 21.82%
assets/img/icon-star-white.png0.91KB1.12KB0.00%
assets/img/icon-edit-dark-small.png1.14KB0.33KB▼ 71.38%
assets/img/icon-check-green-small.png1.08KB0.30KB▼ 72.64%