84% card-block-with-box-shadow

Code Review | Card Block with Box Shadow

WordPress plugin Card Block with Box Shadow scored84%from 54 tests.

About plugin

  • Plugin page: card-block-with-b...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2022
  • Latest release: Apr 10, 2023
  • Number of updates: 6
  • Update frequency: every 25.2 days
  • Top authors: thongtruong (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /591 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.02MB] [CPU: ▼0.96ms] Passed 4 tests

A check of server-side resources used by Card Block with Box Shadow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.88 ▼4.55
Dashboard /wp-admin3.32 ▲0.0244.82 ▼5.51
Posts /wp-admin/edit.php3.37 ▲0.0249.93 ▲4.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.80 ▲7.52
Media Library /wp-admin/upload.php3.24 ▲0.0235.38 ▲1.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Card Block with Box Shadow
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8214.48 ▲0.121.96 ▲0.1740.37 ▼8.26
Dashboard /wp-admin2,209 ▲214.83 ▼0.9898.62 ▼18.7741.60 ▲0.25
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0038.57 ▲0.6835.68 ▼1.37
Add New Post /wp-admin/post-new.php6,247 ▲4,73319.19 ▼4.43915.98 ▲280.5455.16 ▼11.50
Media Library /wp-admin/upload.php1,382 ▼64.21 ▲0.0293.96 ▼7.6941.72 ▼0.22

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/card-block-with-box-shadow/card-block-with-box-shadow.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: block, card

card-block-with-box-shadow/card-block-with-box-shadow.php 92% from 13 tests

Analyzing the main PHP file in "Card Block with Box Shadow" version 2.0.0
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 203 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
Everything looks great! No dangerous files found in this plugin103 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JSON10095
PHP22217
JavaScript1001
CSS1100

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.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin