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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼1.06 | 4.42 ▼33.79 |
Dashboard /wp-admin | 1.79 ▼1.26 | 6.99 ▼42.03 |
Posts /wp-admin/edit.php | 1.79 ▼1.32 | 6.13 ▼36.80 |
Add New Post /wp-admin/post-new.php | 1.79 ▼3.64 | 4.75 ▼649.93 |
Media Library /wp-admin/upload.php | 1.79 ▼1.21 | 5.16 ▼25.25 |
Reverb.com /wp-admin/options-general.php?page=reverb-settings | 1.79 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲213 | 16.35 ▲0.68 | 16.38 ▲6.43 | 45.99 ▲0.62 |
Dashboard /wp-admin | 2,975 ▲38 | 5.88 ▼0.09 | 157.17 ▲8.64 | 115.24 ▲2.49 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.01 | 64.22 ▼3.02 | 83.89 ▼11.36 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.77 ▼0.00 | 407.98 ▲23.89 | 108.82 ▼4.47 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.04 ▲0.03 | 168.93 ▲16.40 | 111.95 ▼8.25 |
Reverb.com /wp-admin/options-general.php?page=reverb-settings | 990 | 2.05 | 53.88 | 54.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 4 | 8 | 59 |
CSS | 1 | 0 | 0 | 49 |
JavaScript | 1 | 0 | 2 | 8 |
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 code | 0.33 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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