71% review-schema

Code Review | WordPress Review & Structure Data Schema Plugin – Review Schema

WordPress plugin WordPress Review & Structure Data Schema Plugin – Review Schema scored71%from 54 tests.

About plugin

  • Plugin page: review-schema
  • Plugin version: 2.1.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4
  • WordPress version: 6.3.1
  • First release: Aug 18, 2021
  • Latest release: Nov 20, 2023
  • Number of updates: 56
  • Update frequency: every 15.6 days
  • Top authors: techlabpro1 (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

10,000+ active /155,654 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.08MB] [CPU: ▲9.46ms] Passed 4 tests

Server-side resources used by WordPress Review & Structure Data Schema Plugin – Review Schema
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /6.76 ▲3.3051.89 ▲10.68
Dashboard /wp-admin5.09 ▲1.7561.93 ▲2.02
Posts /wp-admin/edit.php5.14 ▲1.7961.02 ▲15.13
Add New Post /wp-admin/post-new.php8.97 ▲3.08174.87 ▲87.19
Media Library /wp-admin/upload.php4.93 ▲1.7047.92 ▲10.02
Settings /wp-admin/admin.php?page=rtrs-settings4.9447.79
All Affiliates /wp-admin/edit.php?post_type=rtrs_affiliate5.0650.35
All Reviews /wp-admin/admin.php?page=rtrs-reviews5.1148.49
All Review Schema /wp-admin/edit.php?post_type=rtrs5.0654.28
Get Help /wp-admin/admin.php?page=rtrs-reviews-get-help4.9347.68

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 130 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_rtrs-widget-review

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Review & Structure Data Schema Plugin – Review Schema
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,039 ▲27715.05 ▲0.631.54 ▼0.3737.93 ▼5.19
Dashboard /wp-admin2,435 ▲2586.64 ▲1.00134.32 ▲41.6492.57 ▲50.37
Posts /wp-admin/edit.php2,364 ▲2643.98 ▲2.0461.33 ▲19.3573.28 ▲36.36
Add New Post /wp-admin/post-new.php19,575 ▲18,04925.24 ▲2.071,031.59 ▲352.1466.88 ▲12.33
Media Library /wp-admin/upload.php1,500 ▲1034.76 ▲0.6195.05 ▼22.8291.91 ▲44.06
Settings /wp-admin/admin.php?page=rtrs-settings1,3773.6953.7783.02
All Affiliates /wp-admin/edit.php?post_type=rtrs_affiliate1,3363.9559.5881.25
All Reviews /wp-admin/admin.php?page=rtrs-reviews1,4403.8251.7777.14
All Review Schema /wp-admin/edit.php?post_type=rtrs1,3503.9465.1463.72
Get Help /wp-admin/admin.php?page=rtrs-reviews-get-help1,81510.14309.62123.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_rtrs-widget-review
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/review-schema/templates/partials/buy-btn.php
    • > /wp-content/plugins/review-schema/templates/partials/title.php
  • 46× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Rtrs\\Helpers\\Functions' not found in wp-content/plugins/review-schema/views/metas/affiliate/schema.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Rtrs\\Helpers\\Functions' not found in wp-content/plugins/review-schema/views/metas/sc/style.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Rtrs\\Models\\Review' not found in wp-content/plugins/review-schema/templates/summary/layout-two.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/review-schema/views/widgets/review-schema.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Rtrs\\Models\\Review' not found in wp-content/plugins/review-schema/templates/summary/layout-three.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Rtrs\\Controllers\\Admin\\Meta\\AddMetaBox' not found in wp-content/plugins/review-schema/views/review-sc-css.php:10
    • > PHP Notice
      Undefined variable: p_meta in wp-content/plugins/review-schema/templates/partials/title.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/review-schema/templates/reviews.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/review-schema/templates/partials/buy-btn.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/review-schema/templates/partials/author.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=rtrs-reviews-get-help
    • > Network (severe)
    images/admin/banner.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

review-schema/review-schema.php 92% from 13 tests

The principal PHP file in "WordPress Review & Structure Data Schema Plugin – Review Schema" v. 2.1.13 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 229 characters long)

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin23,220 lines of code in 108 files:
LanguageFilesBlank linesComment linesLines of code
PHP932,2203,38618,852
CSS73021752,961
JavaScript62792031,367
SVG123035
JSON1005

PHP code 0% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,061)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 836)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity66.97
▷ Minimum class complexity1.00
▷ Maximum class complexity1,061.00
Average method complexity7.77
▷ Minimum method complexity1.00
▷ Maximum method complexity836.00
Code structure
Namespaces13
Interfaces0
Traits1
Classes37
▷ Abstract classes12.70%
▷ Concrete classes3697.30%
▷ Final classes12.78%
Methods376
▷ Static methods9926.33%
▷ Public methods33689.36%
▷ Protected methods51.33%
▷ Private methods359.31%
Functions20
▷ Named functions15.00%
▷ Anonymous functions1995.00%
Constants8
▷ Global constants8100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/imgs/icon-16x16.png1.39KB0.58KB▼ 58.46%
assets/imgs/icon-20x20.png1.50KB0.73KB▼ 51.17%
assets/imgs/icon-32x32.png1.79KB1.00KB▼ 44.22%