Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.27MB] [CPU: ▼281.78ms] Passed 4 tests
Analyzing server-side resources used by WP Latest Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲1.36 | 42.95 ▲20.77 |
Dashboard /wp-admin | 4.35 ▲1.30 | 51.72 ▲7.60 |
Posts /wp-admin/edit.php | 4.40 ▲1.29 | 49.59 ▲8.64 |
Add New Post /wp-admin/post-new.php | 6.65 ▲1.22 | 109.01 ▼1,145.64 |
Media Library /wp-admin/upload.php | 4.29 ▲1.28 | 40.56 ▲2.27 |
Server storage [IO: ▲5.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 203 new files
Database: no new tables, 5 new options
New WordPress options |
---|
wplp_jufeedback_version |
has_views_count_post_meta_key |
widget_wplp_widget |
wplp_db_version |
wplp_jureview_installation_time |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Latest Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,696 ▲90 | 16.28 ▲0.45 | 9.49 ▲0.59 | 45.67 ▼0.23 |
Dashboard /wp-admin | 2,946 ▲96 | 5.89 ▲0.02 | 134.74 ▲2.83 | 104.34 ▲10.13 |
Posts /wp-admin/edit.php | 2,725 ▲22 | 2.69 ▼0.00 | 63.02 ▼0.34 | 92.25 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,618 ▲30 | 21.65 ▼0.26 | 263.05 ▼7.85 | 133.39 ▲29.59 |
Media Library /wp-admin/upload.php | 1,714 ▼58 | 5.01 ▼0.00 | 141.62 ▼40.69 | 108.32 ▼19.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 4 options in the database
- has_views_count_post_meta_key
- wplp_jufeedback_version
- wplp_db_version
- widget_wplp_widget
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-latest-posts/requirements.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > 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 plugin_dir_url() in wp-content/plugins/wp-latest-posts/wp-latest-posts.php:44
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-latest-posts/inc/wplp-front.inc.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-latest-posts/inc/admin/views/tabs/shortcode.php:4
- > 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/content-source.php:57
- > 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:75
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/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 esc_html_e() in wp-content/plugins/wp-latest-posts/inc/admin/views/configuration.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6, #7, #8 in wp-latest-posts/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
wp-latest-posts/wp-latest-posts.php 92% from 13 tests
The main PHP script in "WP Latest Posts" version 4.8.9 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin38,650 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 43 | 2,008 | 1,689 | 13,495 |
CSS | 26 | 1,392 | 643 | 10,798 |
PHP | 25 | 967 | 2,276 | 9,912 |
SVG | 17 | 0 | 4 | 3,107 |
HTML | 5 | 86 | 0 | 622 |
JSX | 1 | 53 | 27 | 437 |
Markdown | 1 | 62 | 0 | 154 |
Sass | 1 | 25 | 0 | 125 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 260)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 140.73 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 689.00 |
Average method complexity | 10.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 260.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 51 | 36.96% |
▷ Public methods | 113 | 81.88% |
▷ Protected methods | 4 | 2.90% |
▷ Private methods | 21 | 15.22% |
Functions | 11 | |
▷ Named functions | 2 | 18.18% |
▷ Anonymous functions | 9 | 81.82% |
Constants | 31 | |
▷ Global constants | 16 | 51.61% |
▷ Class constants | 15 | 48.39% |
▷ Public constants | 15 | 100.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
37 PNG files occupy 0.61MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/wplp-logo-white.png | 3.71KB | 2.09KB | ▼ 43.58% |
wordpress-css-framework/images/logo-joomUnited-white.png | 2.32KB | 2.32KB | 0.00% |
css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
img/wplp-edit-icon.png | 1.00KB | 0.98KB | ▼ 2.43% |
wordpress-css-framework/readme_img/notice.png | 19.65KB | 10.75KB | ▼ 45.31% |