84% wp-review-schema

Code Review | WP Review Schema

WordPress plugin WP Review Schema scored84%from 54 tests.

About plugin

  • Plugin page: wp-review-schema
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: May 14, 2015
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: Asif2BD (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,251 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 gracefully, with no errors

Server metrics [RAM: ▼0.09MB] [CPU: ▼19.88ms] Passed 4 tests

Analyzing server-side resources used by WP Review Schema
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1038.57 ▼3.82
Dashboard /wp-admin3.60 ▲0.2946.65 ▼9.16
Posts /wp-admin/edit.php3.70 ▲0.3448.80 ▼7.26
Add New Post /wp-admin/post-new.php4.85 ▼1.0550.43 ▼59.26
Media Library /wp-admin/upload.php3.54 ▲0.3134.43 ▼1.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Review Schema
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲20613.88 ▼0.5211.66 ▲9.6644.59 ▲1.15
Dashboard /wp-admin2,215 ▲355.55 ▲0.0182.01 ▼16.9439.87 ▼6.88
Posts /wp-admin/edit.php2,129 ▲292.19 ▲0.1835.57 ▼0.4633.64 ▼7.12
Add New Post /wp-admin/post-new.php6,352 ▲4,82618.87 ▼4.51935.27 ▲282.7767.50 ▲13.56
Media Library /wp-admin/upload.php1,425 ▲254.19 ▲0.0598.32 ▼8.5439.41 ▼7.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • bsf_review
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-review-schema/admin/index.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-review-schema/init.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-review-schema/functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-review-schema/wp-review-schema.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can take inspiration from this readme.txt

wp-review-schema/wp-review-schema.php Passed 13 tests

The principal PHP file in "WP Review Schema" v. 1.0.0 is loaded by WordPress automatically on each request
117 characters long description:
The Ultimate Review Schema for WordPress. Improve your CTR & SEO Rankings. Add Review Schema And Look Good in Google.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,047 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP48162983
CSS64097788
JavaScript8082268
SVG1008

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity45.00
▷ Minimum class complexity17.00
▷ Maximum class complexity73.00
Average method complexity5.89
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
13 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/code-in-single.php.png6.42KB2.34KB▼ 63.55%
admin/images/icon.png0.79KB0.87KB0.00%
images/gray.png0.64KB0.67KB0.00%
images/gray-32.png1.43KB1.57KB0.00%
wpdeveloper-logo-2.png15.28KB5.27KB▼ 65.52%