Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.16ms] Passed 4 tests
Server-side resources used by WordPress Apple Push Notifications Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 42.17 ▲2.46 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.51 ▼4.81 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.94 ▲0.24 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 88.42 ▼10.51 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.82 ▲2.84 |
WordPress APN /wp-admin/options-general.php?page=wp-apn | 3.46 | 32.49 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/wp-apn/" and "wp-content/uploads/"
- (new file) wp-content/wp-apn-logs/.empty
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Apple Push Notifications Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.33 | 1.92 ▲0.22 | 42.69 ▲0.01 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼1.07 | 107.21 ▲3.03 | 37.69 ▼8.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.18 ▲0.18 | 36.05 ▲1.42 | 32.06 ▼5.84 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.17 ▼0.03 | 599.44 ▼31.37 | 62.35 ▲3.10 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.29 ▲0.10 | 96.61 ▼9.48 | 41.95 ▼2.94 |
WordPress APN /wp-admin/options-general.php?page=wp-apn | 2,844 | 4.20 | 59.47 | 76.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-apn
- > Warning in wp-content/plugins/wp-apn/views/settings.php+232
Use of undefined constant LINKED_ARTICLES_PLUGIN - assumed 'LINKED_ARTICLES_PLUGIN' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=wp-apn
- > Warning in wp-content/plugins/wp-apn/controllers/Plugin.php+91
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
SRP 50% 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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPAPN_ApiController' not found in wp-content/plugins/wp-apn/controllers/MyApiController.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: notification, apns, apple, apn, apple push notifications...
wp-apn/wp-apn.php Passed 13 tests
"WordPress Apple Push Notifications Plugin" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Plugin gives you an API to send Apple Push Notifications from your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected13,365 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 42 | 1,299 | 1,523 | 7,907 |
Sass | 14 | 30 | 26 | 1,291 |
PHP | 10 | 345 | 196 | 1,276 |
LESS | 14 | 23 | 35 | 1,247 |
SVG | 1 | 0 | 0 | 520 |
Markdown | 4 | 228 | 0 | 462 |
HTML | 1 | 114 | 5 | 380 |
JavaScript | 5 | 44 | 78 | 188 |
JSON | 5 | 0 | 0 | 94 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 36 | 65.45% |
▷ Public methods | 50 | 90.91% |
▷ Protected methods | 5 | 9.09% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
documentation/img/logo.png | 12.09KB | 4.75KB | ▼ 60.70% |
assets/img/logo.png | 12.09KB | 4.75KB | ▼ 60.70% |
assets/img/fabric_of_squares_gray.png | 55.15KB | 57.35KB | 0.00% |
documentation/img/fabric_of_squares_gray_@2X.png | 56.09KB | 66.22KB | 0.00% |
assets/img/notification.png | 0.55KB | 0.78KB | 0.00% |