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: ▲1.75MB] [CPU: ▲10.58ms] Passed 4 tests
Analyzing server-side resources used by WP Latest Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.19 ▲1.72 | 52.91 ▲15.55 |
Dashboard /wp-admin | 5.07 ▲1.76 | 58.97 ▲9.75 |
Posts /wp-admin/edit.php | 5.12 ▲1.76 | 62.96 ▲15.39 |
Add New Post /wp-admin/post-new.php | 7.67 ▲1.78 | 99.68 ▲1.61 |
Media Library /wp-admin/upload.php | 4.99 ▲1.76 | 49.10 ▲18.03 |
Server storage [IO: ▲10.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 296 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_wplp_widget |
wplp_jureview_installation_time |
can_compress_scripts |
wplp_db_version |
db_upgraded |
has_views_count_post_meta_key |
wplp_jufeedback_version |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Latest Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲51 | 14.25 ▼0.43 | 1.75 ▲0.19 | 40.94 ▲1.15 |
Dashboard /wp-admin | 2,216 ▲41 | 5.67 ▲0.05 | 88.73 ▼12.17 | 41.15 ▼1.65 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.03 ▲0.03 | 39.99 ▼1.07 | 34.01 ▼2.62 |
Add New Post /wp-admin/post-new.php | 6,396 ▲4,870 | 27.89 ▲4.74 | 823.29 ▲190.52 | 38.64 ▼22.48 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.28 ▲0.10 | 96.43 ▼11.15 | 42.08 ▼4.18 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-posts
- widget_wplp_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- wplp_jufeedback_version
- widget_recent-comments
- db_upgraded
- wplp_db_version
- has_views_count_post_meta_key
Smoke tests 50% 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 0% 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
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-latest-posts/inc/builder/avada/wplp-avada.php
- > /wp-content/plugins/wp-latest-posts/requirements.php
- > /wp-content/plugins/wp-latest-posts/inc/builder/bakery/wplp-bakery.php
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wp-latest-posts/inc/builder/divi/includes/modules/WplpDivi/WplpDivi.php:6
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/wp-latest-posts/inc/builder/divi/includes/WplpDivi.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-latest-posts/inc/admin/views/tabs/content-source.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-latest-posts/inc/builder/divi/wplp-divi.php:94
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-latest-posts/inc/admin/views/tabs/bottom-form.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-latest-posts/inc/admin/views/tabs/shortcode.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-latest-posts/inc/wplp-front.inc.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-latest-posts/inc/install.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-latest-posts/inc/admin/views/tabs/theme.php:121
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-latest-posts/inc/admin/views/tabs/image-source.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 18 tag instead of maximum 10
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7, #8 in wp-latest-posts/assets to your readme.txt
wp-latest-posts/wp-latest-posts.php Passed 13 tests
The main file in "WP Latest Posts" v. 5.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Advanced frontpage and widget news slider
Code Analysis 97% from 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 plugin74,134 lines of code in 171 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 58 | 3,854 | 1,963 | 22,746 |
JSON | 2 | 0 | 0 | 19,418 |
PHP | 33 | 1,162 | 2,641 | 12,088 |
CSS | 38 | 1,441 | 674 | 11,307 |
SVG | 29 | 0 | 4 | 6,200 |
JSX | 3 | 124 | 51 | 1,002 |
HTML | 5 | 86 | 0 | 640 |
Markdown | 2 | 275 | 0 | 608 |
Sass | 1 | 25 | 0 | 125 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 277)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 115.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 890.00 |
Average method complexity | 11.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 277.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 52 | 32.30% |
▷ Public methods | 131 | 81.37% |
▷ Protected methods | 7 | 4.35% |
▷ Private methods | 23 | 14.29% |
Functions | 20 | |
▷ Named functions | 11 | 55.00% |
▷ Anonymous functions | 9 | 45.00% |
Constants | 33 | |
▷ Global constants | 17 | 51.52% |
▷ Class constants | 16 | 48.48% |
▷ Public constants | 16 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 0.61MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/wplp-logo.png | 6.71KB | 3.37KB | ▼ 49.86% |
img/wplp-edit-icon.png | 1.00KB | 0.98KB | ▼ 2.43% |
css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
img/icon-notification.png | 0.77KB | 0.55KB | ▼ 27.74% |
img/default-image-fpnp.png | 1.49KB | 1.64KB | 0.00% |