84% simple-feed-stats

Code Review | Simple Statistics for Feeds

WordPress plugin Simple Statistics for Feeds scored84%from 54 tests.

About plugin

  • Plugin page: simple-feed-stats
  • Plugin version: 20231026...
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2012
  • Latest release: Oct 26, 2023
  • Number of updates: 55
  • Update frequency: every 72.7 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

56 reviews

Install metrics

1,000+ active /80,668 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼0.75ms] Passed 4 tests

An overview of server-side resources used by Simple Statistics for Feeds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3438.89 ▲0.11
Dashboard /wp-admin3.65 ▲0.3050.82 ▼9.97
Posts /wp-admin/edit.php3.76 ▲0.4049.64 ▲4.26
Add New Post /wp-admin/post-new.php6.22 ▲0.3394.58 ▲2.62
Media Library /wp-admin/upload.php3.57 ▲0.3340.35 ▲5.13
Feed Statistics /wp-admin/options-general.php?page=sfs-options3.5641.59

Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 1 new table, 8 new options
New tables
wp_simple_feed_stats
New WordPress options
widget_recent-posts
sfs_alert
sfs_version
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Statistics for Feeds
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12214.10 ▼0.261.57 ▲0.0640.17 ▼4.53
Dashboard /wp-admin2,286 ▲1065.60 ▼0.0488.39 ▼2.4843.51 ▲5.65
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0035.34 ▼0.9034.21 ▼6.34
Add New Post /wp-admin/post-new.php1,531 ▼023.00 ▼0.09624.89 ▼26.6062.70 ▲13.45
Media Library /wp-admin/upload.php1,404 ▲74.23 ▲0.06106.56 ▼0.4345.23 ▲1.21
Feed Statistics /wp-admin/options-general.php?page=sfs-options1,7741.7727.7568.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-feed-stats/sfs-shortcodes.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-feed-stats/sfs-admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

simple-feed-stats/simple-feed-stats.php 92% from 13 tests

The main PHP script in "Simple Statistics for Feeds" version 20231026... is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "20231026...")

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
Everything looks great! No dangerous files found in this plugin1,733 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP68331211,733

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods116.67%
▷ Protected methods00.00%
▷ Private methods583.33%
Functions57
▷ Named functions57100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin