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 gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.63ms] Passed 4 tests
Server-side resources used by Blocksy Companion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 36.11 ▼6.04 |
Dashboard /wp-admin | 3.51 ▲0.21 | 48.43 ▼3.77 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 47.93 ▼0.90 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 91.99 ▼7.81 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 36.17 ▲3.67 |
Server storage [IO: ▲6.87MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 314 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Blocksy Companion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.20 ▼0.14 | 1.64 ▲0.03 | 36.11 ▼6.58 |
Dashboard /wp-admin | 2,226 ▲48 | 5.62 ▼0.08 | 91.83 ▼21.39 | 43.25 ▼0.00 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 1.98 ▼0.04 | 39.55 ▼4.05 | 35.89 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.43 ▲0.25 | 633.24 ▼11.15 | 56.32 ▼5.42 |
Media Library /wp-admin/upload.php | 1,432 ▲38 | 4.22 ▼0.03 | 97.38 ▲1.94 | 42.30 ▲0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/blocksy-companion/framework/views/optin.php
- 65× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Blocksy\\Extensions\ewsletterSubscribe\\Provider' not found in wp-content/plugins/blocksy-companion/framework/extensions/newsletter-subscribe/providers/demo.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/blocksy-companion/framework/features/header/modal/login.php:5
- > PHP Notice
Undefined variable: filter in wp-content/plugins/blocksy-companion/framework/features/conditions/rules/specific.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function get_editable_roles() in wp-content/plugins/blocksy-companion/framework/features/conditions/rules/user-auth.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/blocksy-companion/framework/extensions/cookies-consent/config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/blocksy-companion/framework/extensions/product-reviews/config.php:5
- > PHP Notice
Undefined variable: filter in wp-content/plugins/blocksy-companion/framework/features/conditions/rules/specific.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/blocksy-companion/framework/features/header/modal/lostpassword.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/blocksy-companion/framework/features/header/items/account/options.php:4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/blocksy-companion/framework/features/demo-install/wp-importer.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Contributors: Contributors not specified
blocksy-companion/blocksy-companion.php Passed 13 tests
The principal PHP file in "Blocksy Companion" v. 2.0.4 is loaded by WordPress automatically on each request
135 characters long description:
This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
Code Analysis 97% from 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 plugin82,694 lines of code in 290 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 20 | 25,580 | 46,780 | 51,846 |
PHP | 97 | 3,739 | 1,068 | 17,971 |
JavaScript | 111 | 1,547 | 265 | 10,354 |
Sass | 50 | 487 | 115 | 2,444 |
SVG | 2 | 0 | 2 | 69 |
CSS | 10 | 10 | 60 | 10 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 116)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 31.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 5.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 116.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 52 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 52 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 341 | |
▷ Static methods | 17 | 4.99% |
▷ Public methods | 280 | 82.11% |
▷ Protected methods | 3 | 0.88% |
▷ Private methods | 58 | 17.01% |
Functions | 164 | |
▷ Named functions | 22 | 13.41% |
▷ Anonymous functions | 142 | 86.59% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected