90% aggregate-rating

Code Review | Aggregate Rating

WordPress plugin Aggregate Rating scored 90% from 54 tests.

About plugin

  • Plugin page: aggregate-rating
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2.4
  • WordPress version: 6.3.1
  • First release: Jan 14, 2019
  • Latest release: Nov 11, 2019
  • Number of updates: 5
  • Update frequency: every 60.4 days
  • Top authors: 118group (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.77ms] Passed 4 tests

Server-side resources used by Aggregate Rating
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.97 ▲5.60
Dashboard /wp-admin3.32 ▲0.0244.37 ▼4.54
Posts /wp-admin/edit.php3.37 ▲0.0245.20 ▼4.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.56 ▼0.50
Media Library /wp-admin/upload.php3.25 ▲0.0233.74 ▼1.82

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aggregate Rating
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.62 ▼0.761.64 ▼0.1243.23 ▲1.90
Dashboard /wp-admin2,215 ▲275.81 ▲0.93103.09 ▼10.1841.06 ▼4.84
Posts /wp-admin/edit.php2,104 ▲182.01 ▲0.0140.09 ▲4.1136.28 ▲2.60
Add New Post /wp-admin/post-new.php1,552 ▲3818.08 ▲0.54593.91 ▼97.5656.31 ▲0.75
Media Library /wp-admin/upload.php1,394 ▲34.22 ▲0.01102.06 ▲1.7145.15 ▲0.38

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: seo, star, aggregate, rating

aggregate-rating/aggregate-rating.php Passed 13 tests

The main file in "Aggregate Rating" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
Aggregate Rating is a plugin which will help user to show star rating on google search result of webpage.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected241 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23898241

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin