Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.07ms] Passed 4 tests
Server-side resources used by Flexible Recent Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.24 ▼2.49 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.10 ▼5.31 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.28 ▲2.63 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.11 ▼16.85 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.30 ▲0.39 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_flexible-recent-posts-widget |
theysaidso_admin_options |
frp_data |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flexible Recent Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.62 ▼1.04 | 1.64 ▼0.36 | 42.13 ▼4.28 |
Dashboard /wp-admin | 2,203 ▲15 | 4.87 ▼0.02 | 111.57 ▼9.07 | 41.44 ▼1.84 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.03 | 39.79 ▲1.43 | 35.36 ▲4.24 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.06 ▲5.49 | 648.65 ▼32.95 | 67.93 ▲12.40 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.15 ▼0.06 | 95.48 ▼6.87 | 40.99 ▼4.98 |
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
- The uninstall procedure has failed, leaving 8 options in the database
- frp_data
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_flexible-recent-posts-widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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
Everything seems fine, however 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/flexible-recent-posts/themes/default/template.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/flexible-recent-posts/templates/recent-posts-widget.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexible-recent-posts/flexible-recent-posts.php:27
- > PHP Notice
Undefined variable: instance in wp-content/plugins/flexible-recent-posts/templates/recent-posts-widget.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flexible-recent-posts/class-recent-posts-widget.php:2
- > PHP Notice
Undefined variable: before_widget in wp-content/plugins/flexible-recent-posts/templates/recent-posts-widget.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/flexible-recent-posts/templates/recent-posts-widget.php:17
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category_Checklist' not found in wp-content/plugins/flexible-recent-posts/frp-walker-category-checklist.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/flexible-recent-posts/templates/recent-posts-form.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Widget options form), #2 (Widget on frontend)
flexible-recent-posts/flexible-recent-posts.php Passed 13 tests
The primary PHP file in "Flexible Recent Posts" version 1.0.4 is used by WordPress to initiate all plugin functionality
53 characters long description:
Displays recent posts using flexible template system.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected861 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 116 | 96 | 524 |
CSS | 2 | 35 | 4 | 155 |
JavaScript | 3 | 17 | 13 | 115 |
PO File | 1 | 26 | 35 | 63 |
JSON | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/template-icons.png | 3.58KB | 2.05KB | ▼ 42.72% |
images/help.png | 0.74KB | 0.64KB | ▼ 13.80% |
images/custom-taxonomies.png | 2.15KB | 1.28KB | ▼ 40.57% |
screenshot-1.png | 27.34KB | 11.32KB | ▼ 58.59% |
screenshot-2.png | 34.99KB | 11.15KB | ▼ 68.13% |