Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/rs-bruce-lee-quotes/bruce.php+25
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼310.25ms] Passed 4 tests
This is a short check of server-side resources used by RS Bruce Lee Quotes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 5.00 ▼17.56 |
Dashboard /wp-admin | 1.76 ▼1.29 | 4.71 ▼39.72 |
Posts /wp-admin/edit.php | 1.76 ▼1.34 | 6.55 ▼33.85 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 4.52 ▼1,132.83 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 5.37 ▼34.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_rs_bruce_table |
New WordPress options |
---|
widget_bruce_widget |
bruce_db_version |
Browser metrics Passed 4 tests
RS Bruce Lee Quotes: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,787 ▲205 | 16.34 ▲0.46 | 11.80 ▲3.25 | 48.40 ▲3.66 |
Dashboard /wp-admin | 2,961 ▲108 | 5.95 ▼0.07 | 149.97 ▲15.51 | 105.36 ▲6.03 |
Posts /wp-admin/edit.php | 2,703 ▼0 | 2.68 ▼0.01 | 69.74 ▲4.14 | 92.69 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,853 ▲2 | 19.19 ▲1.83 | 353.43 ▼11.02 | 109.29 ▼2.73 |
Media Library /wp-admin/upload.php | 1,778 ▲6 | 5.01 ▲0.01 | 156.74 ▲2.51 | 109.97 ▼3.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/rs-bruce-lee-quotes/bruce.php+25
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 1 option in the database
- widget_bruce_widget
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)
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/rs-bruce-lee-quotes/public/views/public.php:15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/rs-bruce-lee-quotes/public/views/public.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rs-bruce-lee-quotes/public/class-bruce-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Contributors: Plugin contributors not specified
rs-bruce-lee-quotes/bruce.php 92% from 13 tests
"RS Bruce Lee Quotes" version 1.0.1'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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rs-bruce-lee-quotes.php" instead of "bruce.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
No dangerous file extensions were detected263 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 98 | 98 | 257 |
JavaScript | 1 | 5 | 0 | 5 |
CSS | 2 | 0 | 2 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 8 | 26.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin