84% absolute-reviews

Code Review | Absolute Reviews

WordPress plugin Absolute Reviews scored 84% from 54 tests.

About plugin

  • Plugin page: absolute-reviews
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Nov 5, 2019
  • Latest release: Jan 23, 2022
  • Number of updates: 21
  • Update frequency: every 38.8 days
  • Top authors: codesupplyco (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

8,000+ active / 51,234 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Absolute Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.5660.24 ▲8.94
Dashboard /wp-admin3.91 ▲0.5037.03 ▲3.46
Posts /wp-admin/edit.php4.14 ▲0.5039.54 ▲1.76
Add New Post /wp-admin/post-new.php7.47 ▲0.4899.39 ▼1,170.10
Media Library /wp-admin/upload.php3.85 ▲0.5526.18 ▼4.97
Reviews /wp-admin/options-general.php?page=absolute-reviews3.7628.48

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 1 new option
New WordPress options
widget_abr_reviews_posts_widget

Browser metrics Passed 4 tests

Absolute Reviews: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲5216.04 ▲0.336.51 ▲0.232.50 ▼0.10
Dashboard /wp-admin2,895 ▲416.13 ▼0.15115.57 ▼21.97155.76 ▼7.21
Posts /wp-admin/edit.php2,695 ▲43.25 ▲0.0169.57 ▲7.51139.72 ▲4.60
Add New Post /wp-admin/post-new.php2,192 ▲47519.37 ▼2.53409.53 ▼10.28173.88 ▲16.20
Media Library /wp-admin/upload.php1,705 ▲75.47 ▼0.06144.71 ▼4.41185.87 ▼5.76
Reviews /wp-admin/options-general.php?page=absolute-reviews1,4252.3755.80129.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_abr_reviews_posts_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 16× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > 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 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 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 15
    • > 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
      Trying to access array offset on value of type null in wp-content/plugins/absolute-reviews/public/block/render.php on line 36
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/absolute-reviews/public/block/render.php on line 39
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/absolute-reviews/public/block/render.php on line 15
    • > 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
      Undefined variable: attributes in wp-content/plugins/absolute-reviews/public/block/render.php on line 35

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

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: schemaorg, review, reviews, rating

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

Analyzing the main PHP file in "Absolute Reviews" version 1.1.0
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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6,094 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP165608653,015
CSS4564342,950
JavaScript14656109
SVG10019
JSON1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were 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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin