10% random-business-quotes

Code Review | Random Business Quotes

WordPress plugin Random Business Quotes scored 10% from 54 tests.

About plugin

  • Plugin page: random-business-q...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 5.8.1
  • First release: Feb 18, 2015
  • Latest release: Feb 19, 2015
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: blnd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 853 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/random-business-quotes/random-business-quotes.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; business_quotes has a deprecated constructor

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

A check of server-side resources used by Random Business Quotes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼0.956.25 ▼24.13
Dashboard /wp-admin1.79 ▼1.265.42 ▼27.54
Posts /wp-admin/edit.php1.79 ▼1.317.92 ▼38.04
Add New Post /wp-admin/post-new.php1.79 ▼3.645.46 ▼655.85
Media Library /wp-admin/upload.php1.79 ▼1.2110.39 ▼27.94

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_business_quotes

Browser metrics Passed 4 tests

An overview of browser requirements for Random Business Quotes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.82 ▲0.329.13 ▼2.8350.17 ▼5.09
Dashboard /wp-admin2,973 ▲395.87 ▼0.10140.41 ▼16.64103.57 ▼11.81
Posts /wp-admin/edit.php2,739 ▼02.68 ▲0.0070.57 ▼6.2895.41 ▼0.73
Add New Post /wp-admin/post-new.php1,683 ▲9218.72 ▼0.01394.06 ▲1.18115.32 ▲11.20
Media Library /wp-admin/upload.php1,813 ▲65.00 ▼0.02169.74 ▲11.43124.52 ▲5.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/random-business-quotes/random-business-quotes.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; business_quotes has a deprecated constructor
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_business_quotes

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)
Good news, no errors were detected

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/random-business-quotes/random-business-quotes.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
10 plugin tags: entrepreneur, business, business quotes, daily, startup quotes...

random-business-quotes/random-business-quotes.php Passed 13 tests

"Random Business Quotes" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Display random startup and buiness quotes from Mentorbit.com.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101941

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin