Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▲4.16ms] Passed 4 tests
An overview of server-side resources used by Latest Post Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 44.37 ▲4.55 |
Dashboard /wp-admin | 4.09 ▲0.79 | 53.67 ▲2.56 |
Posts /wp-admin/edit.php | 4.17 ▲0.81 | 61.29 ▲14.24 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.77 | 94.19 ▲2.59 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 44.39 ▲6.95 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
lps_asset_version |
db_upgraded |
lps_plugin_notice_db_ver |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Latest Post Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 7,394 ▲4,632 | 13.68 ▼0.63 | 1.61 ▼0.27 | 41.76 ▼3.08 |
Dashboard /wp-admin | 6,775 ▲4,595 | 5.04 ▼0.65 | 109.34 ▲21.14 | 105.05 ▲65.96 |
Posts /wp-admin/edit.php | 6,696 ▲4,596 | 2.37 ▲0.42 | 44.96 ▲2.32 | 72.76 ▲37.95 |
Add New Post /wp-admin/post-new.php | 10,763 ▲9,237 | 19.06 ▼4.01 | 946.53 ▲322.18 | 40.18 ▼2.57 |
Media Library /wp-admin/upload.php | 5,923 ▲4,532 | 4.32 ▲0.05 | 101.72 ▲0.26 | 91.31 ▲47.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- lps_plugin_notice_db_ver
- lps_asset_version
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/latest-post-shortcode/elementor/widgets/class-lps-widgets.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/latest-post-shortcode/latest-post-shortcode.php:34
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/latest-post-shortcode/elementor/controls/class-lps-control.php:12
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: custom output, content shortcode, configurable shortcode with ui, paginated posts list, posts grid...
latest-post-shortcode/latest-post-shortcode.php 85% from 13 tests
The main file in "Latest Post Shortcode" v. 11.6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 310 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,345 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 474 | 838 | 4,461 |
PO File | 1 | 390 | 446 | 795 |
SVG | 3 | 0 | 0 | 63 |
JSON | 2 | 0 | 0 | 15 |
CSS | 7 | 0 | 6 | 7 |
JavaScript | 4 | 0 | 0 | 4 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 318)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 172.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 678.00 |
Average method complexity | 9.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 318.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 81 | |
▷ Static methods | 61 | 75.31% |
▷ Public methods | 76 | 93.83% |
▷ Protected methods | 4 | 4.94% |
▷ Private methods | 1 | 1.23% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 11 | |
▷ Global constants | 4 | 36.36% |
▷ Class constants | 7 | 63.64% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 0.46MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/post_tiles11.png | 26.45KB | 9.90KB | ▼ 62.57% |
assets/images/post_tiles22.png | 29.36KB | 10.43KB | ▼ 64.47% |
assets/images/post_tiles18.png | 29.06KB | 10.60KB | ▼ 63.54% |
assets/images/post_tiles17.png | 29.21KB | 10.30KB | ▼ 64.73% |
assets/images/icon-128x128.png | 8.50KB | 3.84KB | ▼ 54.83% |