Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.99MB] [CPU: ▲0.63ms] Passed 4 tests
An overview of server-side resources used by Simple Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.61 ▲1.15 | 45.77 ▲6.25 |
Dashboard /wp-admin | 4.29 ▲0.99 | 50.61 ▲1.46 |
Posts /wp-admin/edit.php | 4.34 ▲0.99 | 57.13 ▲7.89 |
Add New Post /wp-admin/post-new.php | 6.87 ▲0.99 | 87.88 ▼13.09 |
Media Library /wp-admin/upload.php | 4.21 ▲0.99 | 43.51 ▲9.30 |
Server storage [IO: ▲7.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 176 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_apbd_simple_notification |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Notification
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 13.64 ▼0.75 | 6.09 ▲4.30 | 37.75 ▼7.54 |
Dashboard /wp-admin | 2,233 ▲45 | 4.83 ▼0.23 | 108.05 ▼11.63 | 37.63 ▼9.57 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▲0.03 | 37.93 ▼1.87 | 36.76 ▲2.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.18 ▲0.28 | 655.83 ▼11.94 | 62.87 ▲8.47 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.18 ▼0.01 | 98.67 ▼8.30 | 43.17 ▼0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_apbd_simple_notification
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function APBD_LoadCore() in wp-content/plugins/simple-notification/appcore/APBD_Simple_Notification_base.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mapbd_simple_notification' not found in wp-content/plugins/simple-notification/views/apbd_simple_notification/add.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function APBD_LoadCore() in wp-content/plugins/simple-notification/core/AppsBDKarnelLite.php:7
- > PHP Fatal error
Uncaught Error: Class 'AppsBDLiteModule' not found in wp-content/plugins/simple-notification/modules/Apbd_aboutus_recommended.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-notification/template/popup-msg.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-notification/template/popup.php:18
- > PHP Fatal error
Uncaught Error: Class 'AppsBDLiteModule' not found in wp-content/plugins/simple-notification/modules/Apbd_simple_notification.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-notification/views/apbd_aboutus_recommended/main.php:9
- > PHP Notice
Undefined variable: output in wp-content/plugins/simple-notification/template/main.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'AppsBDLiteModule' not found in wp-content/plugins/simple-notification/modules/Apbd_notification_video.php:7
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #3, #4, #5, #6, #7 in simple-notification/assets to your readme.txt
simple-notification/simple-notification.php Passed 13 tests
The principal PHP file in "Simple Notification" v. 1.3 is loaded by WordPress automatically on each request
27 characters long description:
Sale promotion notification
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin75,739 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 5,533 | 6,553 | 25,680 |
CSS | 41 | 5,402 | 240 | 24,997 |
SVG | 9 | 0 | 0 | 9,798 |
Sass | 29 | 1,163 | 34 | 9,483 |
PHP | 26 | 802 | 569 | 5,779 |
LESS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 47.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 362.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 3 | 18.75% |
▷ Concrete classes | 13 | 81.25% |
▷ Final classes | 0 | 0.00% |
Methods | 404 | |
▷ Static methods | 48 | 11.88% |
▷ Public methods | 379 | 93.81% |
▷ Protected methods | 22 | 5.45% |
▷ Private methods | 3 | 0.74% |
Functions | 67 | |
▷ Named functions | 66 | 98.51% |
▷ Anonymous functions | 1 | 1.49% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 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
6 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/recommended/elite-addons.png | 61.15KB | 20.97KB | ▼ 65.70% |
images/onlystyle.png | 57.11KB | 25.21KB | ▼ 55.86% |
images/recommended/multicurrency.png | 7.13KB | 3.07KB | ▼ 56.97% |
images/menu_icon.png | 2.31KB | 1.71KB | ▼ 25.92% |
images/recommended/woolentor.png | 3.73KB | 3.92KB | 0.00% |