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.07MB] [CPU: ▼7.11ms] Passed 4 tests
Server-side resources used by WPBlocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.88 ▼4.00 |
Dashboard /wp-admin | 3.38 ▲0.04 | 51.89 ▼15.19 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 55.27 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.26 ▼11.06 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 42.49 ▲5.65 |
WPBlocks /wp-admin/options-general.php?page=wpblocks-settings | 3.27 | 30.41 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
wpblocks_settings |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WPBlocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.23 ▲0.07 | 2.89 ▲0.84 | 39.62 ▼4.20 |
Dashboard /wp-admin | 2,199 ▲19 | 5.57 ▼0.03 | 85.25 ▼10.25 | 40.18 ▼0.20 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.01 | 39.30 ▲0.63 | 35.20 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.10 ▼0.54 | 684.13 ▲5.07 | 36.78 ▼19.12 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.09 ▼0.08 | 110.49 ▼7.32 | 45.32 ▼4.44 |
WPBlocks /wp-admin/options-general.php?page=wpblocks-settings | 849 | 2.03 | 25.67 | 27.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 4× 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/wpblocks/inc/class-settings.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function wpblocks_settings() in wp-content/plugins/wpblocks/blocks/empty-space/index.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wpblocks_settings() in wp-content/plugins/wpblocks/blocks/social-icons/index.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wpblocks_settings() in wp-content/plugins/wpblocks/blocks/infobox/index.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #5 in wpblocks/assets to your readme.txt
wpblocks/wpblocks.php 85% from 13 tests
The entry point to "WPBlocks" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin411 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 142 | 319 | 371 |
PO File | 1 | 11 | 13 | 34 |
CSS | 3 | 0 | 0 | 3 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 22.22% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected