89% wppx-price-table-block

Code Review | Gutenberg Price Table Block

WordPress plugin Gutenberg Price Table Block scored89%from 54 tests.

About plugin

  • Plugin page: wppx-price-table-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9.3
  • WordPress version: 6.3.1
  • First release: May 13, 2022
  • Latest release: May 13, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wppixels (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /252 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.26MB] [CPU: ▼15.43ms] Passed 4 tests

Analyzing server-side resources used by Gutenberg Price Table Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.34 ▼2.29
Dashboard /wp-admin3.31 ▲0.0146.82 ▼7.33
Posts /wp-admin/edit.php3.36 ▲0.0146.35 ▼6.98
Add New Post /wp-admin/post-new.php4.81 ▼1.0852.99 ▼44.76
Media Library /wp-admin/upload.php3.23 ▲0.0134.87 ▼2.64

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gutenberg Price Table Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.34 ▼0.271.72 ▲0.1340.17 ▲0.12
Dashboard /wp-admin2,198 ▲245.62 ▲0.0986.23 ▼6.8841.52 ▲2.18
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0838.82 ▲2.0533.75 ▼0.05
Add New Post /wp-admin/post-new.php6,197 ▲4,67119.09 ▼4.50880.37 ▲191.1557.27 ▼8.42
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.0994.97 ▼4.5042.04 ▼1.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | 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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

wppx-price-table-block/plugin.php 92% from 13 tests

The main file in "Gutenberg Price Table Block" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wppx-price-table-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected651 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32888307
Sass331161
CSS2018124
PHP3123759

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin