Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.57ms] Passed 4 tests
Server-side resources used by Visit Notifications
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 36.06 ▼2.35 |
Dashboard /wp-admin | 3.44 ▲0.13 | 46.35 ▼6.50 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 48.15 ▼0.86 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 93.43 ▼8.57 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.86 ▲3.38 |
Server storage [IO: ▲16.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 455 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Visit Notifications: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲46 | 14.34 ▼0.01 | 1.66 ▲0.16 | 42.04 ▼1.32 |
Dashboard /wp-admin | 2,213 ▲38 | 5.65 ▼0.04 | 92.38 ▼11.16 | 45.48 ▲5.57 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.16 ▲0.18 | 39.93 ▲1.17 | 39.14 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.56 ▲0.46 | 606.04 ▼31.41 | 49.16 ▼0.89 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.17 ▼0.06 | 101.38 ▲1.44 | 47.25 ▲4.06 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 90× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/admin/views/acf-field-group/location-rule.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/fields/class-acf-field-output.php:5
- > PHP Notice
Undefined variable: group_id in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/admin/views/acf-field-group/location-group.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/acf-hook-functions.php:4
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/fields/class-acf-field-true_false.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_idify() in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/admin/views/acf-field-group/conditional-logic.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/acf-helper-functions.php:142
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/fields/class-acf-field-time_picker.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field_number' not found in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/fields/class-acf-field-range.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/visit-notifications/lib/advanced-custom-fields/includes/admin/views/browse-fields-modal.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: notification, visit, read, receipt, post
visit-notifications/visit-notifications.php 92% from 13 tests
The principal PHP file in "Visit Notifications" v. 3.1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.8" instead of "5.2")
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 detected193,171 lines of code in 348 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 46 | 46,767 | 70,992 | 112,491 |
JavaScript | 19 | 5,347 | 7,487 | 39,438 |
PHP | 171 | 9,667 | 21,600 | 27,525 |
CSS | 15 | 715 | 1,529 | 13,136 |
SVG | 95 | 0 | 0 | 291 |
Markdown | 1 | 58 | 0 | 281 |
XML | 1 | 3 | 1 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 19.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 119 | |
▷ Abstract classes | 3 | 2.52% |
▷ Concrete classes | 116 | 97.48% |
▷ Final classes | 2 | 1.72% |
Methods | 1,025 | |
▷ Static methods | 3 | 0.29% |
▷ Public methods | 986 | 96.20% |
▷ Protected methods | 9 | 0.88% |
▷ Private methods | 30 | 2.93% |
Functions | 564 | |
▷ Named functions | 545 | 96.63% |
▷ Anonymous functions | 19 | 3.37% |
Constants | 15 | |
▷ Global constants | 10 | 66.67% |
▷ Class constants | 5 | 33.33% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.86MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/advanced-custom-fields/assets/images/field-type-previews/field-preview-text.png | 9.12KB | 4.80KB | ▼ 47.41% |
lib/advanced-custom-fields/assets/images/field-type-previews/field-preview-file.png | 9.01KB | 3.74KB | ▼ 58.46% |
lib/advanced-custom-fields/assets/images/field-type-previews/field-preview-taxonomy.png | 11.45KB | 6.06KB | ▼ 47.07% |
lib/advanced-custom-fields/assets/images/field-type-previews/field-preview-relationship.png | 22.77KB | 10.24KB | ▼ 55.04% |
lib/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png | 3.68KB | 4.17KB | 0.00% |