Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.54ms] Passed 4 tests
An overview of server-side resources used by Hide admin notices - Admin Notification Center
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.72 ▼8.35 |
Dashboard /wp-admin | 3.44 ▲0.09 | 46.87 ▼14.94 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 50.51 ▲4.09 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 92.08 ▼6.58 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.94 ▼0.29 |
Hide Admin Notice /wp-admin/admin.php?page=wp-admin-notification-center | 3.34 | 32.45 |
Notice Listing /wp-admin/admin.php?page=notice-listing | 3.38 | 34.10 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_wanc_notice |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
wanc_version |
db_upgraded |
widget_recent-comments |
wanc_display_settings |
Browser metrics Passed 4 tests
Hide admin notices - Admin Notification Center: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲126 | 14.32 ▼0.02 | 1.60 ▼0.28 | 42.15 ▼1.91 |
Dashboard /wp-admin | 2,278 ▲104 | 5.70 ▲0.19 | 94.30 ▼7.91 | 75.92 ▲31.16 |
Posts /wp-admin/edit.php | 2,186 ▲86 | 1.96 ▼0.07 | 38.10 ▲1.73 | 35.25 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,595 ▲65 | 23.32 ▲0.35 | 663.90 ▼16.79 | 37.89 ▼18.09 |
Media Library /wp-admin/upload.php | 1,477 ▲74 | 4.17 ▼0.05 | 101.12 ▼5.28 | 71.80 ▲28.20 |
Hide Admin Notice /wp-admin/admin.php?page=wp-admin-notification-center | 1,132 | 2.04 | 28.42 | 35.83 |
Notice Listing /wp-admin/admin.php?page=notice-listing | 1,145 | 2.04 | 26.12 | 36.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_wanc_notice
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- db_upgraded
- wanc_version
- widget_recent-posts
- widget_theysaidso_widget
- wanc_display_settings
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-admin-notification-center/src/views/notification_center.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-admin-notification-center/src/Views/notice/listing.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-admin-notification-center/src/Views/notification_center.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-admin-notification-center/index.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-admin-notification-center/src/Views/settings.php:1
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/wp-admin-notification-center/vendor/psr/container/src/NotFoundExceptionInterface.php:11
- > PHP Fatal error
Uncaught Error: Class 'WANC\\Repository' not found in wp-content/plugins/wp-admin-notification-center/src/Repositories/NoticeRepository.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-admin-notification-center/src/views/options.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-admin-notification-center/src/Services/NoticeListingService.php:8
- > 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 errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #3 is required in wp-admin-notification-center/assets to your readme.txt
wp-admin-notification-center/index.php 77% from 13 tests
The principal PHP file in "Hide admin notices - Admin Notification Center" v. 3.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-admin-notification-center.php" instead of "index.php")
- Domain Path: The domain path folder does not exist ("/languages")
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
Everything looks great! No dangerous files found in this plugin1,916 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 371 | 484 | 1,588 |
JavaScript | 2 | 22 | 17 | 142 |
JSON | 3 | 0 | 0 | 105 |
CSS | 3 | 9 | 0 | 64 |
SVG | 1 | 0 | 0 | 14 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 28 | 25.23% |
▷ Public methods | 105 | 94.59% |
▷ Protected methods | 2 | 1.80% |
▷ Private methods | 4 | 3.60% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin