Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼294.37ms] Passed 4 tests
Analyzing server-side resources used by Recent Posts Shortcode & Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.04 | 58.13 ▲8.70 |
Dashboard /wp-admin | 3.45 ▲0.04 | 34.11 ▲0.55 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 36.60 ▼1.27 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 96.50 ▼1,176.80 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 25.22 ▲0.04 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Recent Posts Shortcode & Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,764 ▲42 | 16.18 ▲0.44 | 5.87 ▼0.48 | 2.28 ▲0.03 |
Dashboard /wp-admin | 2,895 ▲41 | 6.16 ▼0.04 | 119.08 ▼15.75 | 152.20 ▼13.43 |
Posts /wp-admin/edit.php | 2,685 ▼9 | 3.24 ▲0.00 | 63.16 ▲0.28 | 147.07 ▲5.09 |
Add New Post /wp-admin/post-new.php | 1,760 ▼13 | 22.62 ▲0.90 | 416.09 ▼59.54 | 162.94 ▼1.50 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.46 ▼0.06 | 139.71 ▼7.70 | 190.69 ▲2.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: A description for screenshot #6 is missing in recent-posts-shortcode-widget/assets to your readme.txt
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
recent-posts-shortcode-widget/index.php 92% from 13 tests
The main PHP script in "Recent Posts Shortcode & Widget" version 1.8 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("recent-posts-shortcode-widget.php" instead of "index.php")
Code Analysis Passed 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 plugin445 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 145 | 43 | 261 |
CSS | 1 | 48 | 2 | 184 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin