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: ▼269.38ms] Passed 4 tests
A check of server-side resources used by Zip.News API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 26.12 ▲6.36 |
Dashboard /wp-admin | 3.16 ▲0.11 | 41.99 ▼8.15 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 38.45 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 92.01 ▼1,058.57 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 31.82 ▼11.56 |
Zip.News Settings /wp-admin/options-general.php?page=znaw | 3.01 | 25.74 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_znaw_zipnewswidget |
Browser metrics Passed 4 tests
Zip.News API: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,730 ▲124 | 15.95 ▲0.36 | 9.74 ▲1.21 | 48.64 ▲4.00 |
Dashboard /wp-admin | 2,987 ▲137 | 6.11 ▲0.24 | 148.37 ▲1.07 | 100.70 ▼1.25 |
Posts /wp-admin/edit.php | 2,733 ▲30 | 2.70 ▲0.02 | 65.34 ▼1.28 | 92.09 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,866 ▲278 | 17.74 ▼3.60 | 348.33 ▲79.07 | 107.83 ▲5.54 |
Media Library /wp-admin/upload.php | 1,804 ▲32 | 5.05 ▲0.03 | 144.80 ▼33.98 | 111.25 ▼30.28 |
Zip.News Settings /wp-admin/options-general.php?page=znaw | 1,062 | 2.09 | 56.53 | 70.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- widget_znaw_zipnewswidget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/zip-news/templates/related-articles.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zip-news/zipnews-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zip-news/admin-notice.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/zip-news/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zip-news/zipnews-widget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 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
6 plugin tags: news, api, articles, zipnews, news api...
zip-news/wordpress-zipnews.php 85% from 13 tests
The primary PHP file in "Zip.News API" version 1.5.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zip-news.php" instead of "wordpress-zipnews.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin625 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 42 | 24 | 565 |
CSS | 1 | 9 | 1 | 60 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 84.00 |
▷ Minimum class complexity | 84.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 21.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin