Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.44ms] Passed 4 tests
An overview of server-side resources used by Block Logic - Full Gutenberg Block Display Control
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.98 ▼2.58 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.03 ▼5.51 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.15 ▼5.83 |
Add New Post /wp-admin/post-new.php | 7.19 ▲1.30 | 98.57 ▼3.84 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.19 ▲7.51 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Block Logic - Full Gutenberg Block Display Control
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.25 ▼0.10 | 1.87 ▲0.04 | 44.01 ▼3.16 |
Dashboard /wp-admin | 2,195 ▲18 | 5.50 ▼0.08 | 85.48 ▼12.54 | 43.62 ▼3.87 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.01 | 35.70 ▼7.45 | 33.36 ▼6.59 |
Add New Post /wp-admin/post-new.php | 1,690 ▲162 | 22.79 ▼0.24 | 682.81 ▼9.44 | 60.47 ▲8.02 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.00 | 95.55 ▼8.24 | 43.98 ▼0.03 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: block, visibility, conditions, conditional logic, conditional
block-logic/block-logic.php Passed 13 tests
The principal PHP file in "Block Logic - Full Gutenberg Block Display Control" v. 1.0.8 is loaded by WordPress automatically on each request
103 characters long description:
Adds a conditional block attribute Block Logic to control block display to the "Advanced" control panel
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin108 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 44 | 80 |
Markdown | 1 | 12 | 0 | 23 |
JavaScript | 1 | 1 | 176 | 4 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
There are no PNG files in this plugin