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.01MB] [CPU: ▼8.94ms] Passed 4 tests
A check of server-side resources used by WC Browser Notify
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.55 ▼2.40 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.33 ▼12.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.19 ▼1.76 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.29 ▼18.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.93 ▼0.17 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WC Browser Notify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.17 ▼1.20 | 1.89 ▼0.26 | 43.68 ▼2.07 |
Dashboard /wp-admin | 2,215 ▲12 | 5.83 ▲1.00 | 104.87 ▼11.03 | 39.53 ▼10.88 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.05 | 37.05 ▲2.41 | 35.28 ▼5.49 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 17.52 ▼5.67 | 660.14 ▲8.16 | 54.82 ▲3.50 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.19 ▼0.09 | 103.11 ▲4.30 | 47.39 ▲6.95 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add a description for screenshot #3 in wc-browser-notify/assets to your readme.txt
wc-browser-notify/wc-borwser-notify.php 85% from 13 tests
The main PHP file in "WC Browser Notify" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-browser-notify.php" instead of "wc-borwser-notify.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin888 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 124 | 200 | 480 |
CSS | 3 | 90 | 43 | 301 |
JavaScript | 3 | 19 | 14 | 107 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 33 | |
▷ Static methods | 32 | 96.97% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin