Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.57ms] Passed 4 tests
Server-side resources used by ROB (rat out blocker)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.52 ▼2.72 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.61 ▼0.52 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 45.81 ▼1.55 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.61 ▼1.50 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.26 ▲0.70 |
ROB (rat out blocker) /wp-admin/tools.php?page=rob-rat-out-blocker | 3.26 | 32.58 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for ROB (rat out blocker)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.48 ▼0.27 | 1.81 ▼0.27 | 44.03 ▼7.56 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲0.75 | 109.01 ▼6.22 | 44.72 ▼2.57 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▼0.00 | 36.21 ▼1.20 | 32.94 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.01 ▼0.15 | 655.67 ▲6.86 | 60.32 ▼3.23 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.20 ▲0.04 | 96.39 ▲2.19 | 42.27 ▼1.92 |
ROB (rat out blocker) /wp-admin/tools.php?page=rob-rat-out-blocker | 811 | 2.03 | 21.75 | 32.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=rob-rat-out-blocker
- > Notice in wp-content/plugins/rob-rat-out-blocker/views/settings-page.php+13
Undefined variable: error
- > GET request to /wp-admin/tools.php?page=rob-rat-out-blocker
- > Notice in wp-content/plugins/rob-rat-out-blocker/views/settings-page.php+14
Undefined variable: success
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 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: block, external request, request, speed up, security...
rob-rat-out-blocker/bootstrap.php 92% from 13 tests
The principal PHP file in "ROB (rat out blocker)" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rob-rat-out-blocker.php" instead of "bootstrap.php")
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
Good job! No executable or dangerous file extensions detected390 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 78 | 158 | 319 |
PO File | 1 | 19 | 39 | 71 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 11 | 55.00% |
▷ Public methods | 15 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 25.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin