Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼291.99ms] Passed 4 tests
An overview of server-side resources used by BBSpoiler
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 65.06 ▲6.91 |
Dashboard /wp-admin | 3.44 ▲0.03 | 40.93 ▲3.96 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 40.21 ▼6.58 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 101.89 ▼1,159.16 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 28.74 ▼6.18 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
BBSpoiler: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,885 ▲131 | 16.58 ▲0.89 | 9.66 ▲3.29 | 2.51 ▲0.13 |
Dashboard /wp-admin | 2,895 ▲37 | 6.17 ▲0.02 | 120.41 ▼19.02 | 156.25 ▼9.05 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▼0.11 | 64.23 ▲0.29 | 150.28 ▲7.44 |
Add New Post /wp-admin/post-new.php | 1,667 ▲6 | 16.84 ▼0.24 | 416.16 ▼44.46 | 153.23 ▼77.31 |
Media Library /wp-admin/upload.php | 1,707 ▲9 | 5.52 ▼0.02 | 139.49 ▼7.85 | 185.18 ▼12.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bbspoiler/bbspoiler.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Too many tags (37 tag instead of maximum 10); only the first 5 tags are used in your directory listing
bbspoiler/bbspoiler.php Passed 13 tests
The principal PHP file in "BBSpoiler" v. 2.01 is loaded by WordPress automatically on each request
80 characters long description:
This plugin allows you to hide text under the tags [spoiler]your text[/spoiler].
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 plugin408 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 21 | 0 | 226 |
PHP | 1 | 21 | 10 | 120 |
JavaScript | 2 | 9 | 3 | 62 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/spoiler.png | 3.61KB | 4.00KB | 0.00% |