84% card-block

Code Review | Card Block

WordPress plugin Card Block scored 84% from 54 tests.

About plugin

  • Plugin page: card-block
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: Jun 25, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: sagarprajapati (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,066 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: ▼0.15ms] Passed 4 tests

An overview of server-side resources used by Card Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.54 ▼0.98
Dashboard /wp-admin3.31 ▲0.0053.73 ▼1.19
Posts /wp-admin/edit.php3.36 ▲0.0053.25 ▲1.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.78 ▼0.41
Media Library /wp-admin/upload.php3.23 ▲0.0038.98 ▲4.14

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Card Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲3814.48 ▲1.251.96 ▼0.0042.18 ▼6.49
Dashboard /wp-admin2,206 ▼05.91 ▲0.06115.98 ▲5.6243.21 ▼3.86
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0240.96 ▼9.0634.57 ▼5.30
Add New Post /wp-admin/post-new.php1,644 ▲11020.51 ▼2.68889.34 ▲183.2855.58 ▲5.18
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0095.73 ▼8.2241.61 ▼3.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/card-block/card-block.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: gutenberg, gutenberg block, custom card, card block

card-block/card-block.php Passed 13 tests

The main PHP file in "Card Block" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
Card block for WordPress Gutenberg.

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
There were no executable files found in this plugin364 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33055231
JSON20056
Sass210252
PHP161323
CSS2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin