90% packerland-custom-blocks

Code Review | Packerland Custom Blocks

WordPress plugin Packerland Custom Blocks scored90%from 54 tests.

About plugin

  • Plugin page: packerland-custom...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 11, 2019
  • Latest release: Mar 8, 2023
  • Number of updates: 22
  • Update frequency: every 57.9 days
  • Top authors: mike314156 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Packerland Custom Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.28 ▼1.89
Dashboard /wp-admin3.32 ▼0.0244.47 ▼11.91
Posts /wp-admin/edit.php3.37 ▲0.0251.40 ▲4.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.12 ▼14.70
Media Library /wp-admin/upload.php3.24 ▲0.0241.52 ▲4.45

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_pcbfacebookwidgetid

Browser metrics Passed 4 tests

A check of browser resources used by Packerland Custom Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.90 ▼0.3636.96 ▲35.4243.10 ▲3.13
Dashboard /wp-admin2,208 ▲175.85 ▲0.97107.29 ▲1.3343.89 ▲0.21
Posts /wp-admin/edit.php2,091 ▲22.00 ▲0.0039.53 ▲2.8135.33 ▲2.28
Add New Post /wp-admin/post-new.php6,354 ▲4,82627.84 ▲9.40920.37 ▲292.1339.11 ▼14.49
Media Library /wp-admin/upload.php1,393 ▲114.20 ▼0.0596.28 ▼2.7745.87 ▲3.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_pcbfacebookwidgetid
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

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 your attention: The official readme.txt might help

packerland-custom-blocks/packerland-custom-blocks.php Passed 13 tests

The main file in "Packerland Custom Blocks" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Updates Gutenberg with extra features!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin840 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript26210520
PHP29623320

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.19
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
No PNG files were detected