Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.47ms] Passed 4 tests
Server-side resources used by Push Notification iOS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.21 ▼9.75 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.99 ▲3.44 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 53.92 ▲10.17 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.11 ▼12.91 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.03 ▲5.34 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_pn_apns_devices |
wp_pn_setting |
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
Checking browser requirements for Push Notification iOS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲216 | 14.85 ▲0.55 | 1.76 ▼0.13 | 39.86 ▼5.49 |
Dashboard /wp-admin | 2,342 ▲151 | 6.41 ▲1.54 | 139.41 ▲33.30 | 96.32 ▲53.06 |
Posts /wp-admin/edit.php | 2,263 ▲174 | 3.39 ▲1.39 | 52.12 ▲10.15 | 67.29 ▲29.07 |
Add New Post /wp-admin/post-new.php | 1,681 ▲148 | 21.99 ▼1.22 | 749.93 ▲70.77 | 37.89 ▼11.36 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.01 ▼0.21 | 98.16 ▼2.55 | 79.74 ▲32.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_pn_apns_devices
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | 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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'wp-config.php' (include_path='.:/usr/share/php') in wp-content/plugins/push-notifications-ios/register_user_device.php on line 9
- > PHP Warning
require_once(wp-config.php): failed to open stream: No such file or directory in wp-content/plugins/push-notifications-ios/register_user_device.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/push-notifications-ios/push_notifications.php:484
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 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
5 plugin tags: ios, push notifications, iphone, ipad, ipod touch
push-notifications-ios/push_notifications.php 92% from 13 tests
Analyzing the main PHP file in "Push Notification iOS" version 0.3
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("push-notifications-ios.php" instead of "push_notifications.php")
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
There were no executable files found in this plugin822 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 27 | 36 | 397 |
PHP | 3 | 145 | 53 | 371 |
JavaScript | 1 | 31 | 2 | 54 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 13 | |
▷ Named functions | 13 | 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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/images/icon-sprite.png | 2.24KB | 2.25KB | 0.00% |
img/logo.png | 5.61KB | 2.61KB | ▼ 53.36% |
img/icon.png | 0.52KB | 0.49KB | ▼ 6.93% |
styles/images/icon-sprite@2x.png | 4.05KB | 4.21KB | 0.00% |