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.10MB] [CPU: ▼6.48ms] Passed 4 tests
An overview of server-side resources used by WP Notification Center
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 43.49 ▲2.16 |
Dashboard /wp-admin | 3.42 ▲0.07 | 53.42 ▼12.79 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.34 ▼3.63 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 97.82 ▼9.70 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 40.47 ▲0.19 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Notification Center: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.38 ▼0.15 | 1.72 ▼0.00 | 35.33 ▼11.77 |
Dashboard /wp-admin | 2,208 ▲28 | 5.67 ▼0.01 | 88.61 ▼3.30 | 41.02 ▼0.78 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.97 ▼0.06 | 35.19 ▼5.69 | 37.81 ▲2.32 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.17 ▲0.11 | 678.81 ▼1.36 | 64.71 ▲3.45 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.19 ▲0.09 | 104.26 ▼15.29 | 49.27 ▼0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Interface 'Never5\\WPNotificationCenter\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/wp-notification-center/src/PluginServiceProvider.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/wp-notification-center/vendor/wpupdatephp/wp-update-php/spec/WPUpdatePhpSpec.php:18
- > PHP Fatal error
Uncaught Error: Class 'Never5\\WPNotificationCenter\\Pimple\\Container' not found in wp-content/plugins/wp-notification-center/src/Plugin.php:5
- > PHP Fatal error
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 Passed 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
7 plugin tags: notices, admin notices, notification center, notifications, notice...
wp-notification-center/wp-notification-center.php Passed 13 tests
The entry point to "WP Notification Center" version 1.0.1 is a PHP file that has certain tags in its header comment area
92 characters long description:
Adds a notification center to WordPress, no more pages that are cluttered with notifications
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin795 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 218 | 492 | 667 |
JSON | 2 | 0 | 0 | 47 |
Sass | 1 | 8 | 0 | 46 |
Markdown | 2 | 16 | 0 | 34 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 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 | 11 | |
▷ Named functions | 6 | 54.55% |
▷ Anonymous functions | 5 | 45.45% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin