Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.84ms] Passed 4 tests
A check of server-side resources used by Recent Posts: Widget and Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.77 ▼2.06 |
Dashboard /wp-admin | 3.35 ▲0.00 | 52.47 ▼17.28 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.44 ▼3.22 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.73 ▼12.80 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 40.39 ▲4.79 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options |
---|
Recent_PostsInputField3 |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Recent_PostsInputField2 |
widget_recent_posts |
Recent_PostsInputField1 |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Recent Posts: Widget and Shortcode: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.26 ▼0.16 | 2.04 ▲0.23 | 43.25 ▼3.53 |
Dashboard /wp-admin | 2,213 ▲33 | 5.54 ▼0.15 | 83.91 ▼17.27 | 91.84 ▲47.92 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.02 ▼0.03 | 33.39 ▼11.46 | 34.02 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,692 ▲144 | 22.49 ▼1.00 | 766.04 ▲91.59 | 56.89 ▲3.86 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.20 ▼0.01 | 110.59 ▲3.84 | 80.78 ▲34.11 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- Recent_PostsInputField3
- Recent_PostsInputField1
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- Recent_PostsInputField2
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent_posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: recent posts, related posts, posts shortcode
recent-posts-widget-and-shortcode/Recent_Posts.php 92% from 13 tests
The entry point to "Recent Posts: Widget and Shortcode" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("recent-posts-widget-and-shortcode.php" instead of "Recent_Posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin219 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 55 | 43 | 219 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.77MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenicon.png | 11.64KB | 3.20KB | ▼ 72.52% |
screenshot-2.png | 166.38KB | 48.89KB | ▼ 70.61% |
screenshot-1.png | 427.59KB | 129.74KB | ▼ 69.66% |
thumb.png | 7.23KB | 0.13KB | ▼ 98.20% |
promo.png | 30.21KB | 9.10KB | ▼ 69.87% |