84% callout-boxes

Code Review | Callout Boxes

WordPress plugin Callout Boxes scored84%from 54 tests.

About plugin

  • Plugin page: callout-boxes
  • Plugin version: 0.3.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.0
  • WordPress version: 6.3.1
  • First release: Aug 4, 2021
  • Latest release: Oct 18, 2021
  • Number of updates: 6
  • Update frequency: every 12.3 days
  • Top authors: RokuMetal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /707 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.66ms] Passed 4 tests

A check of server-side resources used by Callout Boxes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.80 ▼8.01
Dashboard /wp-admin3.34 ▼0.0148.60 ▼15.81
Posts /wp-admin/edit.php3.39 ▲0.0347.99 ▼7.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.01 ▼11.74
Media Library /wp-admin/upload.php3.26 ▲0.0337.50 ▼4.77

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 645 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Callout Boxes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.48 ▲0.091.94 ▲0.2043.12 ▼0.74
Dashboard /wp-admin2,221 ▲185.85 ▲0.04100.44 ▼6.5840.37 ▼1.16
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0435.31 ▼4.4135.90 ▼0.79
Add New Post /wp-admin/post-new.php6,194 ▲4,66219.32 ▼3.98873.65 ▲180.3063.24 ▼1.23
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.0296.14 ▼12.0441.97 ▼7.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon 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 | 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 112× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SVG\odes\\SVGNodeContainer' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/src/Nodes/Filters/SVGFEDistantLight.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'SVG\odes\\SVGNodeContainer' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/src/Nodes/Filters/SVGFEConvolveMatrix.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'SVG\\Rasterization\\Renderers\\Renderer' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/src/Rasterization/Renderers/MultiPassRenderer.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'SVG\odes\\Structures\\SVGStyle' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/src/Nodes/Structures/SVGFont.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/tests/Nodes/Embedded/SVGImageTest.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SVG\\Rasterization\\Renderers\\MultiPassRenderer' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/src/Rasterization/Renderers/TextRenderer.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/tests/SVGTest.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/tests/Reading/AttributeRegistryTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/tests/Utilities/Units/AngleTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'SVG\odes\\SVGNodeContainer' not found in wp-content/plugins/callout-boxes/vendor/meyfa/php-svg/src/Nodes/Presentation/SVGSet.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: boxes, alerts, callout

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

The principal PHP file in "Callout Boxes" v. 0.3.2 is loaded by WordPress automatically on each request
73 characters long description:
Insert callout boxes in your posts using shortcodes and Gutenberg blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9,562 lines of code in 625 files:
LanguageFilesBlank linesComment linesLines of code
PHP1501,9273,9317,473
SVG462001,447
Markdown21090216
JSON300176
CSS2310135
XML311667
YAML25147
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.81
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces19
Interfaces2
Traits0
Classes138
▷ Abstract classes64.35%
▷ Concrete classes13295.65%
▷ Final classes43.03%
Methods632
▷ Static methods599.34%
▷ Public methods54486.08%
▷ Protected methods203.16%
▷ Private methods6810.76%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants70
▷ Global constants22.86%
▷ Class constants6897.14%
▷ Public constants6798.53%

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
14 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/meyfa/php-svg/tests/images/rect-20x40.png0.13KB0.10KB▼ 20.45%
vendor/meyfa/php-svg/tests/images/renderer-rect-fill-rounded.png0.15KB0.13KB▼ 18.99%
vendor/meyfa/php-svg/tests/images/renderer-rect-stroke-fill.png0.18KB0.14KB▼ 23.50%
vendor/meyfa/php-svg/tests/images/bg-white.png0.10KB0.08KB▼ 16.83%
vendor/meyfa/php-svg/tests/images/renderer-rect-stroke-alpha.png0.15KB0.12KB▼ 21.94%