83% only-schema-product-reviews

Code Review | Only Schema Product Reviews

WordPress plugin Only Schema Product Reviews scored83%from 54 tests.

About plugin

  • Plugin page: only-schema-produ...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 12, 2021
  • Latest release: Aug 13, 2021
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: crawlcenter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.68ms] Passed 4 tests

This is a short check of server-side resources used by Only Schema Product Reviews
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.24 ▼4.53
Dashboard /wp-admin3.36 ▲0.0143.72 ▼14.19
Posts /wp-admin/edit.php3.41 ▲0.0542.34 ▼1.98
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.38 ▼18.03
Media Library /wp-admin/upload.php3.28 ▲0.0532.06 ▼1.79

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Only Schema Product Reviews
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.90 ▼0.4711.73 ▲9.9742.24 ▼2.51
Dashboard /wp-admin2,199 ▲225.58 ▼0.1089.24 ▲0.9838.29 ▼2.81
Posts /wp-admin/edit.php2,104 ▲72.00 ▲0.0334.73 ▼2.2829.99 ▼5.02
Add New Post /wp-admin/post-new.php6,391 ▲4,86326.01 ▲3.07874.74 ▲278.6757.52 ▲4.33
Media Library /wp-admin/upload.php1,407 ▲74.27 ▲0.1197.14 ▼1.9442.25 ▲0.66

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/only-schema-product-reviews/PRSCMN.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in only-schema-product-reviews/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === only-schema-product-reviews === )
Please take inspiration from this readme.txt

only-schema-product-reviews/index.php 92% from 13 tests

This is the main PHP file of "Only Schema Product Reviews" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("only-schema-product-reviews.php" instead of "index.php")

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 detected452 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP35818392
CSS11434
JavaScript22026

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity36.50
▷ Minimum class complexity26.00
▷ Maximum class complexity47.00
Average method complexity7.45
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin