84% ab-simple-feeds

Code Review | AB Simple Feeds

WordPress plugin AB Simple Feeds scored84%from 54 tests.

About plugin

  • Plugin page: ab-simple-feeds
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2016
  • Latest release: May 4, 2023
  • Number of updates: 5
  • Update frequency: every 524.6 days
  • Top authors: abooze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.66ms] Passed 4 tests

Server-side resources used by AB Simple Feeds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.35 ▼3.91
Dashboard /wp-admin3.31 ▲0.0146.76 ▲0.09
Posts /wp-admin/edit.php3.36 ▲0.0146.77 ▼0.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.30 ▲1.37
Media Library /wp-admin/upload.php3.23 ▲0.0134.08 ▲1.51

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for AB Simple Feeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.381.71 ▼0.0141.79 ▼6.01
Dashboard /wp-admin2,206 ▲154.91 ▼1.00106.94 ▲1.7645.03 ▲2.86
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.1839.12 ▲2.4135.13 ▲4.22
Add New Post /wp-admin/post-new.php1,542 ▲2318.75 ▼4.33596.71 ▼55.5557.54 ▼0.32
Media Library /wp-admin/upload.php1,382 ▼94.20 ▼0.0195.25 ▼4.8841.93 ▼1.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ab-simple-feeds/ab-simple-feeds.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: feeds, ab simple feeds, thrid party feed display

ab-simple-feeds/ab-simple-feeds.php 92% from 13 tests

Analyzing the main PHP file in "AB Simple Feeds" version 1.1
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 581 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP10836
JavaScript1039

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin