Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼12.84ms] Passed 4 tests
Server-side resources used by Push notification for Mobile and Web app
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 39.11 ▲0.11 |
Dashboard /wp-admin | 3.82 ▲0.51 | 45.38 ▼3.65 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 50.21 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.65 | 92.08 ▼2.77 |
Media Library /wp-admin/upload.php | 3.75 ▲0.51 | 36.96 ▼45.04 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 306 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_pn_user_notifications |
wp_queue_failures |
wp_pn_notification_tokens |
wp_queue_jobs |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
push_notify_version |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Push notification for Mobile and Web app
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲44 | 14.34 ▲0.14 | 1.77 ▼0.14 | 40.60 ▼5.40 |
Dashboard /wp-admin | 2,221 ▲44 | 5.59 ▼0.04 | 95.54 ▲5.66 | 72.84 ▲30.72 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.95 ▼0.01 | 38.87 ▲1.39 | 35.00 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 22.98 ▲0.08 | 684.71 ▼29.71 | 50.81 ▼3.43 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.23 ▲0.07 | 100.11 ▼35.36 | 78.69 ▲24.20 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_queue_jobs
- wp_pn_user_notifications
- wp_pn_notification_tokens
- wp_queue_failures
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- push_notify_version
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/push-notification-mobile-and-web-app/templates/merge-tags/metabox-accordion.php
- > /wp-content/plugins/push-notification-mobile-and-web-app/vendor/symfony/translation/Resources/bin/translation-status.php
- 100× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/push-notification-mobile-and-web-app/vendor/a5hleyrich/wp-queue/tests/TestDatabaseConnection.php:8
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/push-notification-mobile-and-web-app/vendor/symfony/translation/Command/XliffLintCommand.php:31
- > PHP Fatal error
Uncaught Error: Class 'PushNotify\\Base' not found in wp-content/plugins/push-notification-mobile-and-web-app/includes/Notifications/Notification.php:10
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/push-notification-mobile-and-web-app/vendor/symfony/translation/Dumper/IniFileDumper.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Queue\\Job' not found in wp-content/plugins/push-notification-mobile-and-web-app/includes/Job/NotificationJob.php:32
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/push-notification-mobile-and-web-app/vendor/symfony/translation/Loader/PhpFileLoader.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\TranslatorInterface' not found in wp-content/plugins/push-notification-mobile-and-web-app/vendor/symfony/translation/DataCollectorTranslator.php:23
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/push-notification-mobile-and-web-app/vendor/symfony/translation/Resources/bin/translation-status.php on line 59
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/push-notification-mobile-and-web-app/vendor/symfony/translation/Loader/MoFileLoader.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function pushNotify() in wp-content/plugins/push-notification-mobile-and-web-app/templates/body/metabox.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
push-notification-mobile-and-web-app/push-notify.php 85% from 13 tests
The entry point to "Push notification for Mobile and Web app" version 1.7.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("push-notification-mobile-and-web-app.php" instead of "push-notify.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/push-notification-mobile-and-web-app/vendor/nesbot/carbon/bin/upgrade-carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 258 | 4,064 | 9,881 | 19,158 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 10 | 0 | 0 | 1,024 |
Markdown | 9 | 117 | 0 | 328 |
YAML | 2 | 4 | 0 | 18 |
XML | 1 | 0 | 0 | 16 |
DOS Batch | 1 | 0 | 0 | 4 |
SVG | 1 | 0 | 0 | 4 |
CSS | 1 | 0 | 0 | 2 |
LESS | 1 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 2 | 0 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 160)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 160.00 |
Code structure | ||
---|---|---|
Namespaces | 40 | |
Interfaces | 23 | |
Traits | 1 | |
Classes | 143 | |
▷ Abstract classes | 6 | 4.20% |
▷ Concrete classes | 137 | 95.80% |
▷ Final classes | 4 | 2.92% |
Methods | 1,272 | |
▷ Static methods | 217 | 17.06% |
▷ Public methods | 1,109 | 87.19% |
▷ Protected methods | 90 | 7.08% |
▷ Private methods | 73 | 5.74% |
Functions | 127 | |
▷ Named functions | 100 | 78.74% |
▷ Anonymous functions | 27 | 21.26% |
Constants | 90 | |
▷ Global constants | 24 | 26.67% |
▷ Class constants | 66 | 73.33% |
▷ Public constants | 65 | 98.48% |
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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon/firebase.png | 3.59KB | 2.61KB | ▼ 27.42% |
assets/icon/one-signal.png | 7.56KB | 3.51KB | ▼ 53.62% |
assets/icon/logo.png | 4.80KB | 2.62KB | ▼ 45.50% |