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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.62MB] [CPU: ▼7.63ms] Passed 4 tests
An overview of server-side resources used by WP Featured News - Custom Posts Listing Elements
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.62 | 44.62 ▲1.50 |
Dashboard /wp-admin | 3.92 ▲0.62 | 52.29 ▼8.74 |
Posts /wp-admin/edit.php | 4.03 ▲0.68 | 51.19 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 90.14 ▼21.66 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 41.87 ▲4.30 |
Server storage [IO: ▲3.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 274 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Featured News - Custom Posts Listing Elements
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 13.58 ▼0.70 | 12.24 ▲10.34 | 73.70 ▲26.51 |
Dashboard /wp-admin | 2,215 ▲40 | 5.56 ▼0.10 | 87.11 ▼17.81 | 42.43 ▼4.64 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.00 ▼0.01 | 39.29 ▲4.03 | 32.61 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,551 ▲22 | 18.37 ▼4.78 | 622.20 ▼15.47 | 66.77 ▲3.77 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.24 ▼0.04 | 99.23 ▼1.78 | 41.97 ▼4.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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)
Good news, no errors were detected
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
- 2283× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: unique_css_class in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p6/block_6_css.php on line 385
- > PHP Notice
Undefined variable: current_time in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p7/blockcolor.php on line 108
- > PHP Notice
Undefined variable: unique_css_class in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p1/block_1_css.php on line 21
- > PHP Notice
Undefined variable: current_time in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p8/blockcolor.php on line 50
- > PHP Notice
Undefined variable: blockdatecolor in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p4/blockdatecolor.php on line 4
- > PHP Notice
Undefined variable: current_time in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p3/blockbackgroundcolor.php on line 3
- > PHP Notice
Undefined variable: current_time in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p2/sm_post_title_color.php on line 3
- > PHP Notice
Undefined variable: style in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p10/block_10_css.php on line 205
- > PHP Notice
Undefined variable: current_time in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p7/blockcolor.php on line 75
- > PHP Notice
Undefined variable: unique_css_class in wp-content/plugins/wp-featured-news-custom-posts-listing-elements/modules/p1/block_1_css.php on line 149
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
wp-featured-news-custom-posts-listing-elements/index.php 85% from 13 tests
The primary PHP file in "WP Featured News - Custom Posts Listing Elements" version 1.3.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-featured-news-custom-posts-listing-elements.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin27,757 lines of code in 200 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 187 | 1,422 | 479 | 15,425 |
SVG | 4 | 0 | 12 | 9,065 |
CSS | 5 | 1,415 | 22 | 3,190 |
JavaScript | 4 | 15 | 14 | 77 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
55 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/images/block_7.png | 0.82KB | 1.00KB | 0.00% |
modules/images/block_9.png | 3.12KB | 2.13KB | ▼ 31.81% |
modules/images/rss-icon.png | 3.67KB | 0.83KB | ▼ 77.48% |
modules/images/block_11.png | 1.33KB | 1.37KB | 0.00% |
modules/images/list_style.png | 1.94KB | 1.56KB | ▼ 19.79% |