10% kentfa-news-feed

Code Review | KentFA Feed

WordPress plugin KentFA Feed scored10%from 54 tests.

About plugin

  • Plugin page: kentfa-news-feed
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Jan 27, 2014
  • Latest release: Jan 28, 2014
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: paulobrien (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.188.44 ▼37.95
Dashboard /wp-admin2.29 ▼1.0111.43 ▼38.86
Posts /wp-admin/edit.php2.29 ▼1.0610.44 ▼35.43
Add New Post /wp-admin/post-new.php2.29 ▼3.5911.18 ▼76.92
Media Library /wp-admin/upload.php2.29 ▼0.9310.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼0.984.27 ▲2.6942.34 ▲1.92
Dashboard /wp-admin2,203 ▲155.77 ▼0.27104.02 ▲0.1742.05 ▲5.44
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0433.70 ▼3.3534.19 ▲0.83
Add New Post /wp-admin/post-new.php1,542 ▼018.32 ▲0.00626.64 ▼43.3452.28 ▼9.82
Media Library /wp-admin/upload.php1,391 ▲64.34 ▲0.17102.67 ▲1.6243.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

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 === )
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
XML10094
PHP126876
CSS13011

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 code0.06
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
widget-kentfa.png75.66KB33.15KB▼ 56.19%
screenshot-1.png65.84KB15.42KB▼ 76.58%