84% pricing-table-blocks

Code Review | Pricing Table Blocks - by Fatcat Apps

WordPress plugin Pricing Table Blocks - by Fatcat Apps scored84%from 54 tests.

About plugin

  • Plugin page: pricing-table-blocks
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7
  • WordPress version: 6.3.1
  • First release: Jan 13, 2021
  • Latest release: Mar 4, 2021
  • Number of updates: 9
  • Update frequency: every 5.7 days
  • Top authors: fatcatapps (88.89%)flippy101 (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,897 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.27ms] Passed 4 tests

This is a short check of server-side resources used by Pricing Table Blocks - by Fatcat Apps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.56 ▼5.58
Dashboard /wp-admin3.31 ▲0.0050.67 ▼0.22
Posts /wp-admin/edit.php3.36 ▲0.0047.34 ▲1.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.10 ▼16.91
Media Library /wp-admin/upload.php3.23 ▲0.0035.05 ▼2.36

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Pricing Table Blocks - by Fatcat Apps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.28 ▼0.251.91 ▼0.1145.77 ▲3.56
Dashboard /wp-admin2,192 ▲125.61 ▼0.0394.49 ▲7.5541.89 ▼1.92
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0236.98 ▼0.2135.06 ▼1.88
Add New Post /wp-admin/post-new.php6,200 ▲4,67426.27 ▲3.15901.01 ▲212.3652.86 ▼3.00
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.0297.40 ▼2.7944.65 ▲0.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pricing-table-blocks/pricing-table-blocks.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Pricing Table Blocks)
Please take inspiration from this readme.txt

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

The main PHP file in "Pricing Table Blocks - by Fatcat Apps" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Pricing Table Blocks for Gutenberg

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,065 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11136849
CSS25222185
PHP161222
JSON1009

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
6 PNG files occupy 0.43MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png194.90KB47.63KB▼ 75.56%
screenshot-2.png133.10KB43.79KB▼ 67.10%
screenshot-3.png50.55KB14.57KB▼ 71.18%
assets/icon.png0.73KB0.60KB▼ 17.38%
assets/logo-128x128.png2.18KB2.03KB▼ 7.29%