Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.90ms] Passed 4 tests
An overview of server-side resources used by OtFm Gutenberg Spoiler - (or FAQ) collapse block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.19 ▼3.05 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.42 ▼3.94 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.55 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 89.68 ▼16.87 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.54 ▲0.76 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for OtFm Gutenberg Spoiler - (or FAQ) collapse block
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 14.09 ▼0.29 | 6.04 ▲4.30 | 40.83 ▼3.63 |
Dashboard /wp-admin | 2,206 ▲18 | 5.89 ▲0.99 | 115.86 ▲5.51 | 39.75 ▼1.76 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.04 | 40.39 ▼2.79 | 36.70 ▲1.79 |
Add New Post /wp-admin/post-new.php | 6,355 ▲4,824 | 27.63 ▲9.46 | 891.23 ▲245.76 | 58.88 ▼1.57 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.15 ▼0.04 | 102.48 ▼4.83 | 44.63 ▲1.50 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
There were no browser issues found
Optimizations
Plugin configuration Passed 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
5 plugin tags: spoiler, frequently asked questions, gutenberg, blocks, gutenberg blocks
otfm-gutenberg-spoiler/otfm-gutenberg-spoiler.php Passed 13 tests
The main file in "OtFm Gutenberg Spoiler - (or FAQ) collapse block" v. 1.5.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
31 characters long description:
Gutenberg Spoiler for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin721 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 2 | 134 | 0 | 277 |
PHP | 3 | 46 | 48 | 174 |
CSS | 3 | 7 | 0 | 172 |
JavaScript | 3 | 5 | 1 | 63 |
PO File | 1 | 12 | 22 | 35 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin