Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼4.60ms] Passed 4 tests
Analyzing server-side resources used by Push Notifications by Shops2Apps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.89 ▼1.04 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.12 ▼4.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.48 ▲0.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.60 ▼9.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.40 ▼3.77 |
Push Notification Scheduler /wp-admin/admin.php?page=shops2apps-pn-scheduler | 3.25 | 30.95 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Push Notifications by Shops2Apps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲74 | 13.20 ▼1.18 | 1.82 ▼0.33 | 44.37 ▼0.13 |
Dashboard /wp-admin | 2,237 ▲52 | 4.85 ▼1.05 | 109.78 ▼6.23 | 43.13 ▼0.46 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.06 ▼0.07 | 36.14 ▲1.17 | 32.11 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.27 ▲0.11 | 649.56 ▼19.26 | 50.02 ▼4.95 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.29 ▲0.06 | 95.31 ▼10.49 | 43.74 ▼3.35 |
/wp-admin/admin.php?page=#shops2apps | 28 | 0.44 | 0.06 | 3.69 |
Push Notification Scheduler /wp-admin/admin.php?page=shops2apps-pn-scheduler | 902 | 1.91 | 31.55 | 34.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shops2apps-pn-scheduler
- > Notice in wp-content/plugins/push-notifications-by-shops2apps/inc/api-registration-form.php+123
Undefined index: s
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/push-notifications-by-shops2apps/inc/api-registration-form.php:93
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=#shops2apps
- > Network (severe)
wp-admin/admin.php?page=#shops2apps - Failed to load resource: the server responded with a status of 403 (Forbidden)
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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
push-notifications-by-shops2apps/push-notification.php 85% from 13 tests
The main PHP script in "Push Notifications by Shops2Apps" version 0.1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("push-notifications-by-shops2apps.php" instead of "push-notification.php")
- Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,988 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 136 | 65 | 943 |
SVG | 1 | 0 | 0 | 655 |
CSS | 3 | 40 | 71 | 387 |
JavaScript | 1 | 0 | 3 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |