Benchmarks
Plugin footprint 83% from 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.14MB] [CPU: ▼2.89ms] Passed 4 tests
An overview of server-side resources used by ACF Recent Posts Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 33.93 ▼5.06 |
Dashboard /wp-admin | 3.46 ▲0.12 | 45.95 ▼12.12 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.29 ▲3.61 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 91.70 ▲2.02 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.19 ▲4.25 |
Server storage [IO: ▲0.28MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_acf-recent-posts-widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for ACF Recent Posts Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,158 ▲1,401 | 13.52 ▼0.85 | 1.67 ▼0.41 | 38.93 ▼4.28 |
Dashboard /wp-admin | 3,562 ▲1,377 | 5.24 ▼0.58 | 113.44 ▲13.69 | 40.34 ▲0.70 |
Posts /wp-admin/edit.php | 3,450 ▲1,361 | 2.47 ▲0.46 | 46.46 ▲10.56 | 33.79 ▲2.59 |
Add New Post /wp-admin/post-new.php | 2,833 ▲1,291 | 17.63 ▼0.72 | 661.20 ▲10.79 | 67.04 ▲16.20 |
Media Library /wp-admin/upload.php | 2,744 ▲1,356 | 4.57 ▲0.36 | 101.45 ▲7.75 | 45.31 ▲2.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_acf-recent-posts-widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/acf-recent-posts-widget/templates/loop-after.php
- > /wp-content/plugins/acf-recent-posts-widget/templates/loop-before.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (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/acf-recent-posts-widget/acf-widget.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-recent-posts-widget/acf-widget.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/acf-recent-posts-widget/templates/loop-inner.php:30
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/acf-recent-posts-widget/classes/widget-base.php:6
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/acf-recent-posts-widget/templates/loop-after.php on line 10
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/acf-recent-posts-widget/acf-widget.php on line 34
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/acf-recent-posts-widget/templates/loop-inner.php on line 21
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/acf-recent-posts-widget/templates/loop-empty.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Widget_Base' not found in wp-content/plugins/acf-recent-posts-widget/classes/acf-widget-widget.php:6
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-recent-posts-widget/acf-widget.php on line 34
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== acf-recent-posts-widget ===
)
acf-recent-posts-widget/acf-widget.php 92% from 13 tests
"ACF Recent Posts Widget" version 5.9.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-recent-posts-widget.php" instead of "acf-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,699 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 655 | 667 | 1,714 |
PHP | 13 | 276 | 592 | 1,459 |
CSS | 3 | 64 | 117 | 510 |
JavaScript | 1 | 4 | 3 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 24.71 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 11 | 20.37% |
▷ Public methods | 52 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.70% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected