93% bullhorn-rss-display

Code Review | Bullhorn RSS display

WordPress plugin Bullhorn RSS display scored 93% from 54 tests.

About plugin

  • Plugin page: bullhorn-rss-display
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.1-4.2.1
  • WordPress version: 5.8.1
  • First release: May 20, 2015
  • Latest release: May 21, 2015
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: ryuheixys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 787 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Bullhorn RSS display
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0225.33 ▲2.31
Dashboard /wp-admin3.08 ▲0.0230.35 ▼4.10
Posts /wp-admin/edit.php3.14 ▲0.0330.20 ▼0.44
Add New Post /wp-admin/post-new.php5.44 ▲0.0171.37 ▼567.21
Media Library /wp-admin/upload.php3.03 ▲0.0222.02 ▲0.05

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Bullhorn RSS display
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲8515.67 ▲0.014.92 ▼1.4675.72 ▼0.54
Dashboard /wp-admin2,954 ▲586.15 ▼0.03115.20 ▼18.15166.92 ▼2.36
Posts /wp-admin/edit.php2,723 ▼143.13 ▼0.1063.95 ▲1.43139.99 ▲2.89
Add New Post /wp-admin/post-new.php3,706 ▼2915.18 ▼2.90449.70 ▼6.41165.74 ▲2.28
Media Library /wp-admin/upload.php1,772 ▲235.56 ▲0.10142.73 ▲3.27183.09 ▼4.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bullhorn-rss-display/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bullhorn-rss-display/admin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === bullhorn-rss-display === )
  • Screenshots: Screenshot #1 (No screenshots yet. I'll add it later, but you can check out an example here:) image missing
Please take inspiration from this readme.txt

bullhorn-rss-display/plugin.php 92% from 13 tests

"Bullhorn RSS display" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bullhorn-rss-display.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin120 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3321998
CSS18222

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin