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.11MB] [CPU: ▲0.12ms] Passed 4 tests
This is a short check of server-side resources used by Yet Another Push Service
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.33 ▼3.92 |
Dashboard /wp-admin | 3.42 ▲0.11 | 50.56 ▲1.74 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 51.75 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.42 ▼0.18 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 40.16 ▲9.28 |
YAPS Options page /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php | 3.28 | 31.79 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_yaps_devices |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
jal_db_version |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Yet Another Push Service: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.48 ▲0.31 | 1.66 ▼0.47 | 43.68 ▼2.98 |
Dashboard /wp-admin | 2,207 ▲19 | 4.89 ▲0.00 | 121.77 ▲17.38 | 56.24 ▲15.10 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.99 ▼0.03 | 39.40 ▲0.67 | 34.22 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.35 ▲0.14 | 655.19 ▼20.25 | 55.20 ▼6.09 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.15 ▼0.12 | 109.34 ▲12.74 | 50.50 ▲6.21 |
YAPS Options page /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php | 914 | 2.08 | 24.60 | 35.66 |
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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/yaps-yet-another-push-service/yaps.php+111
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- jal_db_version
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php
- > Notice in wp-content/plugins/yaps-yet-another-push-service/yaps.php+480
Trying to access array offset on value of type bool
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php
- > Notice in wp-content/plugins/yaps-yet-another-push-service/yaps.php+466
Undefined variable: checked
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yaps-yet-another-push-service/yaps.php:36
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== yaps-yet-another-push-service ===
) - Screenshots: Screenshot #1 (This shows the option-page) image not found
yaps-yet-another-push-service/yaps.php 92% from 13 tests
The main file in "Yet Another Push Service" v. 0.1.22 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yaps-yet-another-push-service.php" instead of "yaps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin541 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 151 | 97 | 529 |
JavaScript | 1 | 4 | 7 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 35 | |
▷ Named functions | 35 | 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
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 96.95KB | 30.94KB | ▼ 68.09% |