Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.90ms] Passed 4 tests
Analyzing server-side resources used by News Publisher Autopilot
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.51 ▼4.75 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.13 ▼0.15 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 46.89 ▼1.95 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.41 ▼0.29 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.79 ▼0.59 |
Settings /wp-admin/admin.php?page=wpm-settings | 3.26 | 32.62 |
Help /wp-admin/admin.php?page=wpm-api-help | 3.25 | 32.88 |
Server storage [IO: ▲3.08MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
News Publisher Autopilot |
widget_recent-comments |
erroroption |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for News Publisher Autopilot
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.68 ▼0.76 | 1.57 ▼0.15 | 42.07 ▼4.56 |
Dashboard /wp-admin | 2,261 ▲73 | 5.88 ▲0.95 | 101.32 ▲1.41 | 39.25 ▲0.07 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.03 ▲0.03 | 36.93 ▲1.08 | 30.69 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,564 ▲31 | 18.34 ▼4.62 | 600.18 ▼58.72 | 52.97 ▼1.15 |
Media Library /wp-admin/upload.php | 1,448 ▲66 | 4.28 ▼0.10 | 98.20 ▲0.10 | 39.89 ▼5.96 |
Settings /wp-admin/admin.php?page=wpm-settings | 1,030 | 1.96 | 27.38 | 74.96 |
Help /wp-admin/admin.php?page=wpm-api-help | 878 | 1.93 | 29.93 | 35.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- News Publisher Autopilot
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpm-news-api/wpm-news-api-settings.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Contributors: The plugin contributors field is not present
wpm-news-api/wpm-news-api.php 92% from 13 tests
The principal PHP file in "News Publisher Autopilot" v. 2.1.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
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 plugin10,674 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,026 |
PHP | 5 | 164 | 708 | 1,107 |
CSS | 4 | 23 | 12 | 251 |
PO File | 1 | 57 | 57 | 161 |
JavaScript | 5 | 11 | 38 | 129 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 81.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 85.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 14.89% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 30 | |
▷ Global constants | 30 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/wpm-news-api-128x128.png | 21.94KB | 8.81KB | ▼ 59.84% |
images/hook2.png | 3.60KB | 0.44KB | ▼ 87.67% |
images/iconfinder_icon-news_2867930.png | 0.77KB | 0.68KB | ▼ 11.87% |