Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.89ms] Passed 4 tests
A check of server-side resources used by Reusable Block Count
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.05 ▼9.38 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.93 ▼1.83 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.08 ▲0.33 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.15 ▲1.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.67 ▼0.66 |
Reusable Blocks /wp-admin/edit.php?post_type=wp_block | 3.29 | 35.80 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Reusable Block Count
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.27 ▼1.03 | 4.66 ▲2.38 | 44.22 ▼5.76 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▼1.03 | 102.08 ▼0.41 | 38.93 ▼0.00 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▲0.01 | 35.36 ▼1.93 | 31.62 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.48 ▲0.28 | 669.13 ▲15.38 | 54.38 ▲1.11 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.30 ▲0.10 | 97.58 ▼1.74 | 43.90 ▲1.43 |
Reusable Blocks /wp-admin/edit.php?post_type=wp_block | 1,137 | 6.50 | 159.62 | 28.23 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/reusable-block-count/reusable-block-count.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: blocks, reusable, gutenberg
reusable-block-count/reusable-block-count.php Passed 13 tests
The principal PHP file in "Reusable Block Count" v. 1.0 is loaded by WordPress automatically on each request
96 characters long description:
Display a "Reusable blocks" listing page, and a link to view all posts containing a given block.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin58 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 38 | 58 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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