Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▲104.07ms] Passed 4 tests
A check of server-side resources used by WebChangeDetector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 39.78 ▲0.32 |
Dashboard /wp-admin | 3.74 ▲0.40 | 192.89 ▲132.21 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 186.35 ▲141.25 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 350.94 ▲253.67 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 175.44 ▲142.48 |
Show Change Detection /wp-admin/admin.php?page=webchangedetector-show-detection | 3.62 | 168.78 |
Show Screenshot /wp-admin/admin.php?page=webchangedetector-show-screenshot | 3.62 | 159.87 |
Dashboard /wp-admin/admin.php?page=webchangedetector | 3.62 | 279.59 |
Change Detections /wp-admin/admin.php?page=webchangedetector-change-detections | 3.62 | 170.33 |
Upgrade Account /wp-admin/admin.php?page= | 3.61 | 189.44 |
Update Detection /wp-admin/admin.php?page=webchangedetector-update-settings | 3.61 | 170.11 |
Auto Detection /wp-admin/admin.php?page=webchangedetector-auto-settings | 3.62 | 176.84 |
Settings /wp-admin/admin.php?page=webchangedetector-settings | 3.62 | 158.29 |
Logs /wp-admin/admin.php?page=webchangedetector-logs | 3.62 | 162.83 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WebChangeDetector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲227 | 15.20 ▲0.85 | 5.44 ▲3.77 | 42.84 ▲2.13 |
Dashboard /wp-admin | 2,274 ▲94 | 6.09 ▲0.42 | 127.61 ▲41.80 | 92.05 ▲49.41 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 3.57 ▲1.60 | 86.03 ▲48.25 | 36.20 ▲2.43 |
Add New Post /wp-admin/post-new.php | 1,587 ▲61 | 25.06 ▲1.62 | 691.38 ▲25.61 | 36.31 ▼18.12 |
Media Library /wp-admin/upload.php | 1,476 ▲76 | 5.20 ▲1.10 | 143.23 ▲46.34 | 76.47 ▲35.46 |
Show Change Detection /wp-admin/admin.php?page=webchangedetector-show-detection | 949 | 3.60 | 61.30 | 25.57 |
Show Screenshot /wp-admin/admin.php?page=webchangedetector-show-screenshot | 946 | 3.14 | 35.61 | 26.31 |
Dashboard /wp-admin/admin.php?page=webchangedetector | 950 | 3.23 | 36.35 | 27.82 |
Change Detections /wp-admin/admin.php?page=webchangedetector-change-detections | 950 | 3.18 | 36.17 | 23.24 |
Upgrade Account /wp-admin/admin.php?page= | 28 | 0.42 | 0.12 | 4.33 |
Update Detection /wp-admin/admin.php?page=webchangedetector-update-settings | 953 | 3.52 | 34.83 | 27.03 |
Auto Detection /wp-admin/admin.php?page=webchangedetector-auto-settings | 953 | 3.21 | 36.59 | 25.27 |
Settings /wp-admin/admin.php?page=webchangedetector-settings | 950 | 3.23 | 37.48 | 25.85 |
Logs /wp-admin/admin.php?page=webchangedetector-logs | 947 | 3.54 | 35.11 | 28.27 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/webchangedetector/admin/partials/templates/update-detection/update-step-tiles.php
- > /wp-content/plugins/webchangedetector/public/partials/webchangedetector-public-display.php
- > /wp-content/plugins/webchangedetector/admin/partials/templates/update-detection/update-step-cancel.php
- > /wp-content/plugins/webchangedetector/admin/partials/templates/css-settings.php
- > /wp-content/plugins/webchangedetector/admin/partials/templates/update-settings.php
- > /wp-content/plugins/webchangedetector/admin/partials/templates/account.php
- 81× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/webchangedetector/admin/partials/templates/show-change-detection.php on line 9
- > PHP Notice
Undefined variable: wcd in wp-content/plugins/webchangedetector/admin/partials/templates/update-detection/update-step-processing-sc.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/webchangedetector/admin/partials/templates/account.php on line 10
- > PHP Notice
Undefined variable: step in wp-content/plugins/webchangedetector/admin/partials/templates/update-detection/update-step-settings.php on line 4
- > PHP Notice
Undefined variable: progress_setting in wp-content/plugins/webchangedetector/admin/partials/templates/update-detection/update-step-tiles.php on line 3
- > PHP Notice
Undefined variable: progress_pre in wp-content/plugins/webchangedetector/admin/partials/templates/update-detection/update-step-tiles.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/webchangedetector/admin/partials/templates/show-change-detection.php on line 9
- > PHP Notice
Undefined variable: wcd in wp-content/plugins/webchangedetector/admin/partials/templates/update-detection/update-step-change-detection.php on line 14
- > PHP Notice
Undefined variable: progress_setting in wp-content/plugins/webchangedetector/admin/partials/templates/update-detection/update-step-tiles.php on line 3
- > PHP Notice
Undefined variable: progress_change_detection in wp-content/plugins/webchangedetector/admin/partials/templates/update-detection/update-step-tiles.php on line 6
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=
- > Network (severe)
wp-admin/admin.php?page= - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
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: check, changedetector, screenshot, compare, updates...
webchangedetector/webchangedetector.php 92% from 13 tests
The entry point to "WebChangeDetector" version 2.2.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,212 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 445 | 706 | 2,741 |
JavaScript | 4 | 203 | 160 | 793 |
CSS | 3 | 141 | 57 | 663 |
Bourne Shell | 1 | 3 | 2 | 14 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 192.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 2 | 3.12% |
▷ Public methods | 59 | 92.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.81% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 30 | |
▷ Global constants | 24 | 80.00% |
▷ Class constants | 6 | 20.00% |
▷ Public constants | 6 | 100.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 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon-wp-backend.png | 9.97KB | 1.05KB | ▼ 89.51% |