94% ab-simple-feeds

Code Review | AB Simple Feeds

WordPress plugin AB Simple Feeds scored 94% from 54 tests.

About plugin

  • Plugin page: ab-simple-feeds
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.2
  • WordPress version: 5.9.2
  • First release: Feb 27, 2016
  • Latest release: Jan 23, 2018
  • Number of updates: 4
  • Update frequency: every 174.0 days
  • Top authors: abooze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 962 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼297.53ms] Passed 4 tests

Server-side resources used by AB Simple Feeds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0164.88 ▼0.59
Dashboard /wp-admin3.41 ▲0.0036.52 ▼1.24
Posts /wp-admin/edit.php3.64 ▲0.0041.59 ▼2.05
Add New Post /wp-admin/post-new.php6.88 ▼0.09103.18 ▼1,185.86
Media Library /wp-admin/upload.php3.29 ▲0.0032.04 ▼0.96

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for AB Simple Feeds
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1915.08 ▼0.636.57 ▼4.722.42 ▼0.19
Dashboard /wp-admin2,895 ▲416.16 ▲0.02139.18 ▼14.54181.41 ▼9.25
Posts /wp-admin/edit.php2,691 ▼03.22 ▼0.0270.19 ▼8.71164.65 ▼11.10
Add New Post /wp-admin/post-new.php1,711 ▲8021.80 ▲0.86557.19 ▲21.37190.47 ▼12.64
Media Library /wp-admin/upload.php1,695 ▼05.50 ▼0.03176.85 ▲2.21228.62 ▲2.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: thrid party feed display, feeds, ab simple feeds

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

Analyzing the main PHP file in "AB Simple Feeds" version 1.0
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 581 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin45 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
No cyclomatic complexity issues were detected for this plugin
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

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