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: ▼9.43ms] Passed 4 tests
Analyzing server-side resources used by BlackSwan Block External Request
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.56 ▼4.47 |
Dashboard /wp-admin | 3.32 ▲0.02 | 40.97 ▼5.14 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.85 ▼6.28 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.83 ▼21.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.27 ▲1.43 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for BlackSwan Block External Request
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼1.00 | 1.69 ▼0.12 | 39.85 ▼3.13 |
Dashboard /wp-admin | 2,206 ▲32 | 4.85 ▼0.01 | 117.73 ▲1.67 | 46.83 ▲2.14 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.02 | 40.28 ▲1.66 | 36.17 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.51 ▼4.69 | 664.77 ▼45.34 | 58.80 ▲2.55 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.20 ▼0.00 | 100.72 ▼6.20 | 42.74 ▼3.88 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/blackswan-block-external-request/blackswan-block-external-request.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: speed up wordpress, blackswan, wordpress request
blackswan-block-external-request/blackswan-block-external-request.php 85% from 13 tests
The main PHP script in "BlackSwan Block External Request" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "5.4")
- Description: Please keep the plugin description shorter than 140 characters (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin110 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 23 | 60 |
PO File | 1 | 7 | 7 | 42 |
Markdown | 1 | 8 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
There were not PNG files found in your plugin