Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/kentfa-news-feed/widget-kentfa.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; wp_kentfa_plugin has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼47.29ms] Passed 4 tests
This is a short check of server-side resources used by KentFA Feed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.44 ▼37.95 |
Dashboard /wp-admin | 2.29 ▼1.01 | 11.43 ▼38.86 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.44 ▼35.43 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 11.18 ▼76.92 |
Media Library /wp-admin/upload.php | 2.29 ▼0.93 | 10.73 ▼23.76 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_wp_kentfa_plugin |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for KentFA Feed
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.31 ▼0.98 | 4.27 ▲2.69 | 42.34 ▲1.92 |
Dashboard /wp-admin | 2,203 ▲15 | 5.77 ▼0.27 | 104.02 ▲0.17 | 42.05 ▲5.44 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.04 | 33.70 ▼3.35 | 34.19 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.32 ▲0.00 | 626.64 ▼43.34 | 52.28 ▼9.82 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.34 ▲0.17 | 102.67 ▲1.62 | 43.83 ▲2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wp_kentfa_plugin is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_wp_kentfa_plugin
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kentfa-news-feed/widget-kentfa.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (This screenshot shows the widget in action.)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== kentfa-news-feed ===
)
kentfa-news-feed/widget-kentfa.php 92% from 13 tests
The main PHP file in "KentFA Feed" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("kentfa-news-feed.php" instead of "widget-kentfa.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin181 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 0 | 0 | 94 |
PHP | 1 | 26 | 8 | 76 |
CSS | 1 | 3 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widget-kentfa.png | 75.66KB | 33.15KB | ▼ 56.19% |
screenshot-1.png | 65.84KB | 15.42KB | ▼ 76.58% |