Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.67ms] Passed 4 tests
A check of server-side resources used by BlockX
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.29 ▼1.42 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.60 ▼3.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.69 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.92 ▲3.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.73 ▼2.22 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BlockX
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.14 | 1.66 ▼0.01 | 43.28 ▲1.07 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.04 | 90.90 ▲6.45 | 41.20 ▲1.71 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.95 ▼0.02 | 40.94 ▲6.38 | 35.83 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 18.33 ▼4.61 | 600.38 ▼98.64 | 63.07 ▲8.06 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▲0.02 | 95.26 ▼7.00 | 40.66 ▼2.90 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/blockx/templates/blockx__blockx--debug__editor.php
- > /wp-content/plugins/blockx/templates/blockx__blockx--authors.php
- > /wp-content/plugins/blockx/templates/blockx__blockx--authors__editor.php
- 72× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'authors' of non-object in wp-content/plugins/blockx/templates/blockx__blockx--authors.php on line 17
- > PHP Warning
implode(): Invalid arguments passed in wp-content/plugins/blockx/templates/blockx__blockx--authors.php on line 17
- > PHP Fatal error
Uncaught Error: Interface 'Palasthotel\\WordPress\\BlockX\\Containers\\_IContainerType' not found in wp-content/plugins/blockx/classes/Containers/_ContainerType.php:9
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\BlockX\\Model\\Styles' not found in wp-content/plugins/blockx/classes/Model/ContainerStyles.php:5
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\BlockX\\Widgets\\_Widget' not found in wp-content/plugins/blockx/classes/Widgets/ListOf.php:8
- > PHP Warning
array_map(): Expected parameter 2 to be an array, null given in wp-content/plugins/blockx/templates/blockx__blockx--authors__editor.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\BlockX\\Components\\Component' not found in wp-content/plugins/blockx/classes/Gutenberg.php:25
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\BlockX\\Components\\Component' not found in wp-content/plugins/blockx/classes/Headless.php:13
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\BlockX\\Components\\Component' not found in wp-content/plugins/blockx/classes/BlockAssetsGenerator.php:14
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\BlockX\\Components\\Component' not found in wp-content/plugins/blockx/classes/Assets.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: block, developer, utils, gutenberg
blockx/Plugin.php 92% from 13 tests
"BlockX" version 1.9.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("blockx.php" instead of "Plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,885 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 1,122 | 1,096 | 3,666 |
PO File | 1 | 48 | 65 | 129 |
JSON | 5 | 0 | 0 | 76 |
CSS | 1 | 0 | 0 | 13 |
JavaScript | 1 | 0 | 0 | 1 |
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 code | 0.24 |
Average class complexity | 4.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 9 | 12.68% |
▷ Concrete classes | 62 | 87.32% |
▷ Final classes | 0 | 0.00% |
Methods | 365 | |
▷ Static methods | 53 | 14.52% |
▷ Public methods | 355 | 97.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 2.74% |
Functions | 50 | |
▷ Named functions | 3 | 6.00% |
▷ Anonymous functions | 47 | 94.00% |
Constants | 53 | |
▷ Global constants | 1 | 1.89% |
▷ Class constants | 52 | 98.11% |
▷ Public constants | 52 | 100.00% |
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
There were not PNG files found in your plugin