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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼0.95 | 6.25 ▼24.13 |
Dashboard /wp-admin | 1.79 ▼1.26 | 5.42 ▼27.54 |
Posts /wp-admin/edit.php | 1.79 ▼1.31 | 7.92 ▼38.04 |
Add New Post /wp-admin/post-new.php | 1.79 ▼3.64 | 5.46 ▼655.85 |
Media Library /wp-admin/upload.php | 1.79 ▼1.21 | 10.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.82 ▲0.32 | 9.13 ▼2.83 | 50.17 ▼5.09 |
Dashboard /wp-admin | 2,973 ▲39 | 5.87 ▼0.10 | 140.41 ▼16.64 | 103.57 ▼11.81 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▲0.00 | 70.57 ▼6.28 | 95.41 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,683 ▲92 | 18.72 ▼0.01 | 394.06 ▲1.18 | 115.32 ▲11.20 |
Media Library /wp-admin/upload.php | 1,813 ▲6 | 5.00 ▼0.02 | 169.74 ▲11.43 | 124.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 19 | 41 |
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 code | 0.09 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
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