84% callout-block

Code Review | Callout

WordPress plugin Callout scored84%from 54 tests.

About plugin

  • Plugin page: callout-block
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2023
  • Latest release: Apr 13, 2023
  • Number of updates: 3
  • Update frequency: every 27.7 days
  • Top authors: RokuMetal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,002 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Callout
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.59 ▼3.26
Dashboard /wp-admin3.33 ▼0.0247.64 ▼19.05
Posts /wp-admin/edit.php3.38 ▲0.0252.10 ▲2.18
Add New Post /wp-admin/post-new.php5.91 ▲0.0397.87 ▼7.97
Media Library /wp-admin/upload.php3.25 ▲0.0240.64 ▲1.73

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Callout
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.38 ▲0.001.86 ▼0.2346.48 ▲3.17
Dashboard /wp-admin2,195 ▲185.55 ▼0.1385.11 ▼7.0440.20 ▲0.84
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0540.76 ▼0.6035.39 ▼6.25
Add New Post /wp-admin/post-new.php6,374 ▲4,84629.42 ▲6.25870.72 ▲204.4253.74 ▲1.55
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.09108.32 ▼7.6243.36 ▼5.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/callout-block/callout-block.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: callout box, callout, styled box, featured box, block

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

The main PHP script in "Callout" version 1.1.0 is automatically included on every request by WordPress
68 characters long description:
Add a styled box for featured content to the WordPress block editor.

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
Everything looks great! No dangerous files found in this plugin126 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON100117
PHP23216
CSS2002
JavaScript1001

PHP code Passed 2 tests

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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin