84% ranked-review-widget

Code Review | Ranked By Review Widget

WordPress plugin Ranked By Review Widget scored84%from 54 tests.

About plugin

  • Plugin page: ranked-review-widget
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Oct 8, 2014
  • Latest release: May 18, 2015
  • Number of updates: 6
  • Update frequency: every 37.0 days
  • Top authors: amplifier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.12ms] Passed 4 tests

Analyzing server-side resources used by Ranked By Review Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.72 ▼4.30
Dashboard /wp-admin3.32 ▼0.0247.22 ▼19.16
Posts /wp-admin/edit.php3.37 ▲0.0244.44 ▼6.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.53 ▼14.14
Media Library /wp-admin/upload.php3.24 ▲0.0239.09 ▲1.00

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Ranked By Review Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.74 ▲0.511.98 ▲0.3040.96 ▲2.12
Dashboard /wp-admin2,221 ▲245.86 ▲0.03104.61 ▼2.5641.30 ▼2.72
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0236.22 ▼16.4137.34 ▲0.83
Add New Post /wp-admin/post-new.php1,547 ▲1623.15 ▼0.04657.24 ▼17.1648.45 ▼14.79
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.06101.55 ▼10.5845.10 ▼4.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ranked-review-widget/ranked-review-widget.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 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
1 plugin tags: reviews

ranked-review-widget/ranked-review-widget.php Passed 13 tests

"Ranked By Review Widget" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
24 characters long description:
Ranked By Review widgets

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
Good job! No executable or dangerous file extensions detected417 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS12718286
PHP1213985
JavaScript220546

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow.png2.09KB0.99KB▼ 52.61%
images/menu.png3.50KB0.10KB▼ 97.18%