10% listings-for-reverb

Code Review | Listings for Reverb.com

WordPress plugin Listings for Reverb.com scored 10% from 54 tests.

About plugin

  • Plugin page: listings-for-reverb
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Nov 21, 2016
  • Latest release: Nov 24, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: jamesdlow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 0 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/listings-for-reverb/reverb.php+71
    Non-static method ReverbPlugin::addHooks() should not be called statically

Server metrics [RAM: ▼1.86MB] [CPU: ▼190.64ms] Passed 4 tests

Analyzing server-side resources used by Listings for Reverb.com
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼1.064.42 ▼33.79
Dashboard /wp-admin1.79 ▼1.266.99 ▼42.03
Posts /wp-admin/edit.php1.79 ▼1.326.13 ▼36.80
Add New Post /wp-admin/post-new.php1.79 ▼3.644.75 ▼649.93
Media Library /wp-admin/upload.php1.79 ▼1.215.16 ▼25.25
Reverb.com /wp-admin/options-general.php?page=reverb-settings1.795.50

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Listings for Reverb.com
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲21316.35 ▲0.6816.38 ▲6.4345.99 ▲0.62
Dashboard /wp-admin2,975 ▲385.88 ▼0.09157.17 ▲8.64115.24 ▲2.49
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0164.22 ▼3.0283.89 ▼11.36
Add New Post /wp-admin/post-new.php1,686 ▲318.77 ▼0.00407.98 ▲23.89108.82 ▼4.47
Media Library /wp-admin/upload.php1,812 ▲25.04 ▲0.03168.93 ▲16.40111.95 ▼8.25
Reverb.com /wp-admin/options-general.php?page=reverb-settings9902.0553.8854.47

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
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/listings-for-reverb/reverb.php+71
    Non-static method ReverbPlugin::addHooks() should not be called statically

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=reverb-settings
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/listings-for-reverb/reverb.php+71
    Non-static method ReverbPlugin::addHooks() should not be called statically
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=reverb-settings
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/listings-for-reverb/reverb.php+16
    Use of undefined constant ReverbPlugin - assumed 'ReverbPlugin' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=reverb-settings
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method ReverbPlugin::adminMenu() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=reverb-settings
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method ReverbPlugin::optionsPage() should not be called statically

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/listings-for-reverb/reverb.php:13

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: embed, shortcode

listings-for-reverb/reverb.php 92% from 13 tests

"Listings for Reverb.com" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("listings-for-reverb.php" instead of "reverb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin116 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14859
CSS10049
JavaScript1028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ 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 methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin