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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.80 ▼8.01 |
Dashboard /wp-admin | 3.34 ▼0.01 | 48.60 ▼15.81 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.99 ▼7.07 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.01 ▼11.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.48 ▲0.09 | 1.94 ▲0.20 | 43.12 ▼0.74 |
Dashboard /wp-admin | 2,221 ▲18 | 5.85 ▲0.04 | 100.44 ▼6.58 | 40.37 ▼1.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.04 | 35.31 ▼4.41 | 35.90 ▼0.79 |
Add New Post /wp-admin/post-new.php | 6,194 ▲4,662 | 19.32 ▼3.98 | 873.65 ▲180.30 | 63.24 ▼1.23 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.19 ▼0.02 | 96.14 ▼12.04 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 150 | 1,927 | 3,931 | 7,473 |
SVG | 462 | 0 | 0 | 1,447 |
Markdown | 2 | 109 | 0 | 216 |
JSON | 3 | 0 | 0 | 176 |
CSS | 2 | 31 | 0 | 135 |
XML | 3 | 11 | 6 | 67 |
YAML | 2 | 5 | 1 | 47 |
JavaScript | 1 | 0 | 0 | 1 |
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 code | 0.14 |
Average class complexity | 3.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 138 | |
▷ Abstract classes | 6 | 4.35% |
▷ Concrete classes | 132 | 95.65% |
▷ Final classes | 4 | 3.03% |
Methods | 632 | |
▷ Static methods | 59 | 9.34% |
▷ Public methods | 544 | 86.08% |
▷ Protected methods | 20 | 3.16% |
▷ Private methods | 68 | 10.76% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 70 | |
▷ Global constants | 2 | 2.86% |
▷ Class constants | 68 | 97.14% |
▷ Public constants | 67 | 98.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/meyfa/php-svg/tests/images/rect-20x40.png | 0.13KB | 0.10KB | ▼ 20.45% |
vendor/meyfa/php-svg/tests/images/renderer-rect-fill-rounded.png | 0.15KB | 0.13KB | ▼ 18.99% |
vendor/meyfa/php-svg/tests/images/renderer-rect-stroke-fill.png | 0.18KB | 0.14KB | ▼ 23.50% |
vendor/meyfa/php-svg/tests/images/bg-white.png | 0.10KB | 0.08KB | ▼ 16.83% |
vendor/meyfa/php-svg/tests/images/renderer-rect-stroke-alpha.png | 0.15KB | 0.12KB | ▼ 21.94% |