Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.70MB] [CPU: ▼17.26ms] Passed 4 tests
Server-side resources used by Author Product Review
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.81 ▲2.05 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.63 ▼12.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.02 ▲0.73 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.78 | 33.75 ▼59.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.78 ▲1.60 |
Author Product Review /wp-admin/options-general.php?page=author-product-review/options.php | 3.21 | 29.41 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Author Product Review
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.21 ▼0.45 | 1.88 ▲0.13 | 45.34 ▲2.79 |
Dashboard /wp-admin | 2,196 ▲19 | 5.54 ▼0.11 | 87.28 ▲0.28 | 36.18 ▼4.54 |
Posts /wp-admin/edit.php | 2,104 ▲25 | 2.00 ▲0.02 | 36.80 ▼0.18 | 33.18 ▼2.04 |
Add New Post /wp-admin/post-new.php | 6,386 ▲4,858 | 26.19 ▲3.07 | 904.34 ▲301.42 | 57.40 ▲6.21 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.14 ▼0.06 | 97.71 ▼10.07 | 43.83 ▼3.30 |
Author Product Review /wp-admin/options-general.php?page=author-product-review/options.php | 969 | 4.15 | 100.62 | 29.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/author-product-review/author-product-review.php:29
- > PHP Fatal error
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 fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=author-product-review/options.php
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== author-product-review ===
) - Screenshots: Please add images for these screenshots: #1 (This is the product review information panel on the edit post page.), #2 (The Author Product Review settings page.), #3 (This is an example Google result in Rich Snippet testing tool using this plugin.)
author-product-review/author-product-review.php 92% from 13 tests
The primary PHP file in "Author Product Review" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 246 characters long)
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
Everything looks great! No dangerous files found in this plugin254 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 32 | 223 |
CSS | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
empty-star.png | 0.64KB | 0.61KB | ▼ 4.14% |
screenshot-1.png | 10.13KB | 4.15KB | ▼ 59.03% |
full-star.png | 0.67KB | 0.65KB | ▼ 3.48% |
screenshot-3.png | 20.77KB | 8.63KB | ▼ 58.44% |
screenshot-2.png | 92.12KB | 27.16KB | ▼ 70.52% |