Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.27ms] Passed 4 tests
Analyzing server-side resources used by Wolfeo Pushy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.09 | 39.48 ▼5.79 |
Dashboard /wp-admin | 3.42 ▲0.04 | 54.20 ▼11.98 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 53.01 ▲1.18 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.08 | 95.25 ▼8.50 |
Media Library /wp-admin/upload.php | 3.35 ▲0.08 | 39.63 ▲3.50 |
Wolfeo Pushy /wp-admin/options-general.php?page=wolfeo-pushy | 3.32 | 35.28 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 165 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Wolfeo Pushy
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲30 | 14.34 ▼0.05 | 1.80 ▼0.19 | 45.58 ▲3.47 |
Dashboard /wp-admin | 2,208 ▲28 | 5.62 ▼0.07 | 91.43 ▲1.51 | 42.64 ▲0.76 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.99 ▼0.01 | 40.97 ▲2.43 | 37.83 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.27 ▲0.31 | 679.73 ▼13.36 | 55.82 ▲2.54 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.22 ▼0.04 | 98.13 ▼11.01 | 46.49 ▲1.98 |
Wolfeo Pushy /wp-admin/options-general.php?page=wolfeo-pushy | 811 | 1.68 | 27.35 | 29.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wolfeo-pushy/public/partials/wolfeo-pushy-public-display.php
- > /wp-content/plugins/wolfeo-pushy/admin/partials/wolfeo-pushy-admin-display.php
- 64× 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/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/StreamWrapperTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/ServerRequestTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/BufferStreamTest.php:6
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/promises/src/Coroutine.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/src/Stream.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/LazyOpenStreamTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wolfeo-pushy ===
) - Screenshots: Add an image for screenshot #1 (An overview of the settings panel within wp-admin.)
wolfeo-pushy/wolfeo-pushy.php Passed 13 tests
The principal PHP file in "Wolfeo Pushy" v. 1.1 is loaded by WordPress automatically on each request
65 characters long description:
Use Wolfeo's Pushy notifications on your Wordpress pages & posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin14,530 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 2,137 | 5,222 | 11,018 |
Markdown | 9 | 843 | 0 | 2,946 |
JSON | 6 | 0 | 0 | 372 |
JavaScript | 3 | 23 | 69 | 70 |
YAML | 2 | 12 | 0 | 49 |
make | 2 | 11 | 0 | 31 |
CSS | 3 | 2 | 8 | 27 |
XML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 91 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 91 | 100.00% |
▷ Final classes | 5 | 5.49% |
Methods | 930 | |
▷ Static methods | 51 | 5.48% |
▷ Public methods | 821 | 88.28% |
▷ Protected methods | 4 | 0.43% |
▷ Private methods | 105 | 11.29% |
Functions | 182 | |
▷ Named functions | 61 | 33.52% |
▷ Anonymous functions | 121 | 66.48% |
Constants | 36 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 36 | 100.00% |
▷ Public constants | 36 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.21MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 168.16KB | 42.32KB | ▼ 74.83% |
assets/icon-256x256.png | 33.19KB | 35.03KB | 0.00% |
assets/icon-128x128.png | 10.96KB | 11.35KB | 0.00% |