Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▲1.41ms] Passed 4 tests
A check of server-side resources used by News Aggregator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 45.18 ▲6.78 |
Dashboard /wp-admin | 3.47 ▲0.17 | 44.43 ▼1.19 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 44.75 ▼0.14 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 92.04 ▲5.92 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.73 ▲1.04 |
News Aggregator /wp-admin/tools.php?page=News_Agg_Settings | 3.38 | 32.46 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
News_Agg |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_news_aggregator_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
News Aggregator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.35 ▼0.94 | 7.52 ▲5.88 | 40.22 ▲3.31 |
Dashboard /wp-admin | 2,201 ▲20 | 5.54 ▼0.18 | 85.55 ▼12.70 | 39.81 ▼2.82 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.01 ▲0.04 | 37.32 ▲0.23 | 34.65 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.24 ▲0.22 | 652.31 ▼16.79 | 55.98 ▲0.19 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▲0.06 | 101.16 ▼4.12 | 46.11 ▲3.69 |
News Aggregator /wp-admin/tools.php?page=News_Agg_Settings | 1,292 | 1.99 | 22.91 | 50.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_news_aggregator_widget
- can_compress_scripts
- db_upgraded
- News_Agg
- widget_theysaidso_widget
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/news-aggregator/news-aggregator.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
news-aggregator/news-aggregator.php 92% from 13 tests
The main file in "News Aggregator" v. 0.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected1,081 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 136 | 51 | 882 |
CSS | 4 | 0 | 0 | 199 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 63.08% |
▷ Protected methods | 24 | 36.92% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 17 | |
▷ Global constants | 9 | 52.94% |
▷ Class constants | 8 | 47.06% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/plnia-logo.png | 4.87KB | 1.85KB | ▼ 61.99% |
assets/img/icon-256x256.png | 11.26KB | 4.94KB | ▼ 56.15% |