Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼299.70ms] Passed 4 tests
A check of server-side resources used by WPH Breaking News
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 57.68 ▼11.58 |
Dashboard /wp-admin | 3.44 ▲0.03 | 33.06 ▼2.38 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 39.50 ▲1.20 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 97.34 ▼1,183.98 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 25.85 ▼0.86 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WPH Breaking News
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲51 | 16.20 ▲0.84 | 5.69 ▼0.84 | 2.72 ▲0.32 |
Dashboard /wp-admin | 2,892 ▲41 | 6.11 ▼0.05 | 122.16 ▼29.73 | 217.53 ▲55.12 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▲0.01 | 61.01 ▼6.01 | 133.48 ▼9.20 |
Add New Post /wp-admin/post-new.php | 1,932 ▲271 | 20.03 ▼1.91 | 410.47 ▲5.36 | 178.41 ▲6.60 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.50 ▼0.02 | 151.36 ▼2.39 | 203.49 ▼19.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wph-breaking-news/wph-breaking-news.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Post metabox for configure status and time.) image missing
wph-breaking-news/wph-breaking-news.php Passed 13 tests
This is the main PHP file of "WPH Breaking News" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Easy way to announce "Breaking News" on your WordPress site.
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
There were no executable files found in this plugin185 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 28 | 17 | 100 |
PO File | 2 | 12 | 12 | 62 |
Markdown | 1 | 14 | 0 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 27.86KB | 8.27KB | ▼ 70.31% |