Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/rk-hreview-for-wp/rk-wp-hreview.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; RKWPhReview has a deprecated constructor
Server metrics [RAM: ▼0.30MB] [CPU: ▼17.19ms] Passed 4 tests
Analyzing server-side resources used by hReview for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.01 | 32.71 ▼8.63 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.79 ▲2.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.92 ▼2.40 |
Add New Post /wp-admin/post-new.php | 4.63 ▼1.26 | 42.44 ▼59.76 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.90 ▲2.73 |
WP hReview /wp-admin/options-general.php?page=rkwpr_options | 3.22 | 32.59 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
rkwpr_options |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by hReview for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.81 ▲0.44 | 1.81 ▼0.02 | 38.67 ▼5.62 |
Dashboard /wp-admin | 2,206 ▲18 | 5.81 ▼0.09 | 109.46 ▼5.79 | 38.23 ▼7.29 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▲0.00 | 36.01 ▲0.17 | 34.27 ▼0.98 |
Add New Post /wp-admin/post-new.php | 6,310 ▲4,791 | 26.21 ▲3.11 | 918.08 ▲248.36 | 62.31 ▲5.11 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.23 ▲0.05 | 96.29 ▼1.20 | 39.76 ▼2.45 |
WP hReview /wp-admin/options-general.php?page=rkwpr_options | 945 | 2.03 | 22.01 | 47.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- rkwpr_options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% 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)
Everything seems fine, however this is by no means 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/rk-hreview-for-wp/rk-wp-hreview-admin.php on line 11
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/rk-hreview-for-wp/rk-wp-hreview.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rk-hreview-for-wp/rk-wp-hreview.php:45
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=rkwpr_options
- > Network (severe)
wp-content/plugins/rk-hreview-for-wp/rk-wp-hreview-admin.css?ver=1.1.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 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
2 plugin tags: reviews, google
rk-hreview-for-wp/rk-wp-hreview.php 92% from 13 tests
The primary PHP file in "hReview for WordPress" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("rk-hreview-for-wp.php" instead of "rk-wp-hreview.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin855 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 177 | 74 | 847 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 89.50 |
▷ Minimum class complexity | 81.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 5.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin