78% author-product-review

Code Review | Author Product Review

WordPress plugin Author Product Review scored78%from 54 tests.

About plugin

  • Plugin page: author-product-re...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2012
  • Latest release: Oct 30, 2012
  • Number of updates: 27
  • Update frequency: every 1.5 days
  • Top authors: namaserajesh (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /9,207 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.81 ▲2.05
Dashboard /wp-admin3.32 ▼0.0344.63 ▼12.22
Posts /wp-admin/edit.php3.37 ▲0.0147.02 ▲0.73
Add New Post /wp-admin/post-new.php3.10 ▼2.7833.75 ▼59.15
Media Library /wp-admin/upload.php3.24 ▲0.0133.78 ▲1.60
Author Product Review /wp-admin/options-general.php?page=author-product-review/options.php3.2129.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

Browser metrics Passed 4 tests

An overview of browser requirements for Author Product Review
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.21 ▼0.451.88 ▲0.1345.34 ▲2.79
Dashboard /wp-admin2,196 ▲195.54 ▼0.1187.28 ▲0.2836.18 ▼4.54
Posts /wp-admin/edit.php2,104 ▲252.00 ▲0.0236.80 ▼0.1833.18 ▼2.04
Add New Post /wp-admin/post-new.php6,386 ▲4,85826.19 ▲3.07904.34 ▲301.4257.40 ▲6.21
Media Library /wp-admin/upload.php1,401 ▲14.14 ▼0.0697.71 ▼10.0743.83 ▼3.30
Author Product Review /wp-admin/options-general.php?page=author-product-review/options.php9694.15100.6229.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

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'.


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.)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
empty-star.png0.64KB0.61KB▼ 4.14%
screenshot-1.png10.13KB4.15KB▼ 59.03%
full-star.png0.67KB0.65KB▼ 3.48%
screenshot-3.png20.77KB8.63KB▼ 58.44%
screenshot-2.png92.12KB27.16KB▼ 70.52%