Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.54MB] [CPU: ▼4.22ms] Passed 4 tests
A check of server-side resources used by Pushnews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 49.37 ▲5.27 |
Dashboard /wp-admin | 3.45 ▲0.15 | 57.05 ▲7.46 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 61.90 ▲13.32 |
Add New Post /wp-admin/post-new.php | 3.30 ▼2.59 | 55.76 ▼36.04 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 37.74 ▲6.43 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
pushnews_options |
Browser metrics Passed 4 tests
Checking browser requirements for Pushnews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 14.47 ▼0.12 | 2.44 ▲0.49 | 57.94 ▲13.04 |
Dashboard /wp-admin | 2,212 ▲24 | 4.92 ▼0.89 | 176.06 ▲71.18 | 81.93 ▲35.16 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.04 ▲0.03 | 46.16 ▲10.74 | 45.16 ▲10.35 |
Add New Post /wp-admin/post-new.php | 6,529 ▲4,996 | 20.02 ▼3.39 | 998.60 ▲317.58 | 73.82 ▲22.34 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.26 ▲0.07 | 108.40 ▼0.68 | 47.98 ▲1.24 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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
Good news, no errors were detected
SRP 0% 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 output text when accessed directly:
- > /wp-content/plugins/pushnews/sdk/pushnews-sw.js.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/pushnews/views/metabox.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pushnews/views/config.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pushnews/pushnews.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Screenshots: Screenshot #4 (No HTTPS website is required) image not found
pushnews/pushnews.php Passed 13 tests
The main file in "Pushnews" v. 3.10.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Increase your website traffic with Pushnews Web Push Notifications.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,176 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 138 | 180 | 679 |
PO File | 2 | 72 | 76 | 238 |
Markdown | 3 | 92 | 0 | 159 |
CSS | 1 | 16 | 5 | 89 |
SVG | 1 | 1 | 0 | 10 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 28 | 100.00% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 27 | |
▷ Global constants | 2 | 7.41% |
▷ Class constants | 25 | 92.59% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/images/icon-128x128.png | 1.45KB | 1.51KB | 0.00% |
views/images/icon-512x512.png | 5.12KB | 5.42KB | 0.00% |
views/images/icon-256x256.png | 2.43KB | 2.58KB | 0.00% |
views/images/banner-772x250.png | 7.81KB | 9.24KB | 0.00% |