Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.70ms] Passed 4 tests
An overview of server-side resources used by Notification system
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.41 ▲0.33 |
Dashboard /wp-admin | 3.37 ▲0.02 | 52.76 ▼13.92 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.09 ▼9.90 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 98.01 ▼12.54 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.39 ▼2.43 |
Add New /wp-admin/post-new.php?post_type=notification | 3.50 | 58.02 |
Notifications /wp-admin/edit.php?post_type=notification | 3.34 | 44.05 |
Channels /wp-admin/edit-tags.php?taxonomy=channel&post_type=notification | 3.38 | 41.48 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Notification system: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲243 | 14.90 ▲0.29 | 28.67 ▲26.75 | 49.21 ▲2.36 |
Dashboard /wp-admin | 2,240 ▲63 | 5.59 ▼0.07 | 113.56 ▲5.15 | 53.18 ▲7.86 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 2.05 ▲0.06 | 42.66 ▼1.08 | 37.95 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 21.23 ▼1.52 | 689.46 ▲4.77 | 40.99 ▼13.28 |
Media Library /wp-admin/upload.php | 1,445 ▲48 | 4.14 ▼0.22 | 118.08 ▲2.64 | 50.94 ▼0.36 |
Add New /wp-admin/post-new.php?post_type=notification | 2,283 | 7.68 | 206.85 | 69.37 |
Notifications /wp-admin/edit.php?post_type=notification | 1,116 | 1.96 | 42.04 | 30.68 |
Channels /wp-admin/edit-tags.php?taxonomy=channel&post_type=notification | 1,294 | 2.14 | 33.84 | 32.66 |
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
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/notification-system/classes/class-notifications-api-controller.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: notification channel, notification, user notification, notification system
notification-system/notification-system.php Passed 13 tests
The principal PHP file in "Notification system" v. 1.3 is loaded by WordPress automatically on each request
70 characters long description:
Creates and maintains notification system for users on WordPress site.
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 detected2,535 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 458 | 1,177 | 2,025 |
CSS | 2 | 50 | 5 | 260 |
PO File | 1 | 54 | 67 | 132 |
YAML | 3 | 18 | 0 | 100 |
JSON | 2 | 0 | 0 | 10 |
SVG | 3 | 0 | 0 | 7 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 31 | 23.31% |
▷ Public methods | 99 | 74.44% |
▷ Protected methods | 17 | 12.78% |
▷ Private methods | 17 | 12.78% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 13 | |
▷ Global constants | 5 | 38.46% |
▷ Class constants | 8 | 61.54% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected