84% absolute-reviews

Code Review | Absolute Reviews

WordPress plugin Absolute Reviews scored84%from 54 tests.

About plugin

  • Plugin page: absolute-reviews
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 5, 2019
  • Latest release: Aug 9, 2023
  • Number of updates: 26
  • Update frequency: every 53.0 days
  • Top authors: codesupplyco (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10,000+ active /85,636 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.51MB] [CPU: ▼8.32ms] Passed 4 tests

This is a short check of server-side resources used by Absolute Reviews
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5146.38 ▲3.71
Dashboard /wp-admin3.86 ▲0.5254.77 ▼16.18
Posts /wp-admin/edit.php3.92 ▲0.5553.81 ▲0.88
Add New Post /wp-admin/post-new.php6.41 ▲0.5192.36 ▼16.87
Media Library /wp-admin/upload.php3.73 ▲0.4937.85 ▼1.09
Reviews /wp-admin/options-general.php?page=absolute-reviews3.6937.69

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
widget_abr_reviews_posts_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Absolute Reviews
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.38 ▼0.002.24 ▲0.0243.01 ▲1.82
Dashboard /wp-admin2,198 ▲185.58 ▼0.0885.66 ▼14.8337.19 ▼4.66
Posts /wp-admin/edit.php2,106 ▲62.01 ▼0.0333.70 ▼3.1033.40 ▼1.46
Add New Post /wp-admin/post-new.php6,745 ▲5,19526.30 ▲3.28888.40 ▲200.2435.44 ▼22.44
Media Library /wp-admin/upload.php1,403 ▼04.17 ▼0.1299.17 ▼0.2545.24 ▲0.00
Reviews /wp-admin/options-general.php?page=absolute-reviews1,0872.0525.1337.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_abr_reviews_posts_widget
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/absolute-reviews/public/block/render.php on line 38
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/absolute-reviews/public/block/render.php on line 39
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/absolute-reviews/public/block/render.php on line 39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/absolute-reviews/public/class-absolute-reviews-posts-block.php:21
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/absolute-reviews/public/block/render.php on line 37
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/absolute-reviews/public/block/render.php on line 38
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/absolute-reviews/public/block/render.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/absolute-reviews/public/class-absolute-reviews-block.php:21
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/absolute-reviews/public/block/render.php on line 35
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/absolute-reviews/public/class-absolute-reviews-posts-widget.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: reviews, rating, schemaorg, review

absolute-reviews/absolute-reviews.php Passed 13 tests

Analyzing the main PHP file in "Absolute Reviews" version 1.1.2
124 characters long description:
Add beautiful responsive and modern review boxes with valid JSON-LD schema to your posts with the "Advanced Reviews" plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,112 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP165648713,033
CSS4564342,950
JavaScript14656109
SVG10019
JSON1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity18.22
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods3886.36%
▷ Protected methods12.27%
▷ Private methods511.36%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin