Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.94ms] 75% from 4 tests
Server-side resources used by Author hReview
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 644.96ms on /wp-admin/admin.php?page=author-hreview-news)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 43.78 ▲2.63 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.95 ▼2.23 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.58 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.38 ▼8.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.08 ▲1.67 |
Settings /wp-admin/admin.php?page=authorhreview | 3.28 | 29.23 |
Blog News /wp-admin/admin.php?page=author-hreview-news | 5.42 | 644.96 |
Server storage [IO: ▲0.69MB] [DB: ▲0.24MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_recent-reviews |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Author hReview: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲91 | 13.16 ▼1.24 | 1.66 ▼0.45 | 44.99 ▼0.22 |
Dashboard /wp-admin | 2,227 ▲39 | 5.86 ▼0.01 | 102.90 ▼14.09 | 66.37 ▲19.49 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 1.98 ▲0.01 | 40.11 ▲4.11 | 35.50 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6,424 ▲4,891 | 19.28 ▼4.00 | 997.00 ▲324.90 | 70.66 ▲5.74 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.22 ▲0.00 | 99.42 ▼0.96 | 68.60 ▲21.30 |
Settings /wp-admin/admin.php?page=authorhreview | 1,352 | 6.73 | 209.33 | 45.97 |
Blog News /wp-admin/admin.php?page=author-hreview-news | 988 | 2.15 | 24.50 | 27.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.24MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-reviews
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=authorhreview
- > Notice in wp-content/plugins/author-hreview/include/admin/settings_general.php+92
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-hreview/include/options.php:26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=authorhreview
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
author-hreview/author-hreview.php Passed 13 tests
Analyzing the main PHP file in "Author hReview" version 1.0
64 characters long description:
Add support for hReview and AggregateRating based on schema.org.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,362 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 276 | 277 | 1,045 |
CSS | 2 | 18 | 19 | 317 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.62MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/price.png | 2.29KB | 1.82KB | ▼ 20.69% |
images/bg_button.png | 1.10KB | 0.49KB | ▼ 55.36% |
images/wpar_icon_32.png | 2.03KB | 1.42KB | ▼ 30.15% |
screenshot-8.png | 181.12KB | 66.02KB | ▼ 63.55% |
screenshot-6.png | 28.49KB | 10.57KB | ▼ 62.89% |