Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.11MB] [CPU: ▼0.85ms] Passed 4 tests
A check of server-side resources used by WatchMan-Site7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.73 ▲1.26 | 62.02 ▲19.96 |
Dashboard /wp-admin | 4.42 ▲1.07 | 63.74 ▼2.34 |
Posts /wp-admin/edit.php | 4.47 ▲1.11 | 51.92 ▼2.57 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.13 | 91.20 ▼7.06 |
Media Library /wp-admin/upload.php | 4.34 ▲1.11 | 48.25 ▲8.55 |
Visitors /wp-admin/admin.php?page=wms7_visitors | 4.36 | 56.89 |
Black list /wp-admin/admin.php?page=wms7_black_list | 4.23 | 39.16 |
Settings /wp-admin/admin.php?page=wms7_settings | 4.25 | 39.85 |
Server storage [IO: ▲0.77MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 303 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_wms7_visitors |
wp_wms7_countries |
New WordPress options |
---|
can_compress_scripts |
wms7_current_url |
wms7_frontend |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
wms7_screen_settings |
widget_theysaidso_widget |
widget_wms7_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WatchMan-Site7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.73 ▲0.79 | 2.24 ▲0.34 | 48.75 ▲5.08 |
Dashboard /wp-admin | 2,220 ▲46 | 5.63 ▲0.00 | 82.63 ▼16.51 | 42.05 ▼4.03 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.00 ▼0.04 | 37.45 ▲0.27 | 35.34 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.48 ▲0.49 | 683.03 ▼14.75 | 69.00 ▲11.76 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.17 ▼0.00 | 99.83 ▼8.58 | 44.58 ▼2.11 |
Visitors /wp-admin/admin.php?page=wms7_visitors | 2,089 | 1.81 | 29.11 | 55.61 |
Black list /wp-admin/admin.php?page=wms7_black_list | 1,218 | 2.00 | 25.11 | 26.63 |
Settings /wp-admin/admin.php?page=wms7_settings | 1,375 | 1.68 | 24.91 | 31.22 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_wms7_widget
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wms7_black_list
- > Warning in wp-content/plugins/watchman-site7/class-wms7-core.php+2017
array_shift() expects parameter 1 to be array, null given
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wms7_black_list
- > Notice in wp-content/plugins/watchman-site7/class-wms7-core.php+2121
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=wms7_black_list
- > Notice in wp-content/plugins/watchman-site7/class-wms7-core.php+2131
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=wms7_black_list
- > Notice in wp-content/plugins/watchman-site7/class-wms7-core.php+2132
Undefined offset: 1
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: login, blacklist, security, cron, statistic
watchman-site7/watchman-site7.php 92% from 13 tests
The main file in "WatchMan-Site7" v. 4.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 278 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin7,411 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 562 | 1,482 | 5,972 |
JavaScript | 4 | 88 | 213 | 750 |
CSS | 1 | 24 | 26 | 509 |
PO File | 1 | 73 | 81 | 180 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 123.20 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 265.00 |
Average method complexity | 5.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 3 | 2.21% |
▷ Public methods | 73 | 53.68% |
▷ Protected methods | 44 | 32.35% |
▷ Private methods | 19 | 13.97% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 76 | |
▷ Global constants | 4 | 5.26% |
▷ Class constants | 72 | 94.74% |
▷ Public constants | 72 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ban_start_date.png | 8.26KB | 3.61KB | ▼ 56.32% |
images/screen_options.png | 19.21KB | 8.97KB | ▼ 53.31% |
images/robots.png | 5.50KB | 3.07KB | ▼ 44.12% |
images/black_list.png | 4.20KB | 2.69KB | ▼ 36.11% |
images/other_functions.png | 2.79KB | 1.35KB | ▼ 51.64% |