89% schema-review

Code Review | Schema Review

WordPress plugin Schema Review scored89%from 54 tests.

About plugin

  • Plugin page: schema-review
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2016
  • Latest release: Aug 13, 2022
  • Number of updates: 45
  • Update frequency: every 47.8 days
  • Top authors: hishaman (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active /11,048 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.32ms] Passed 4 tests

Analyzing server-side resources used by Schema Review
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.60 ▼0.78
Dashboard /wp-admin3.31 ▲0.0149.23 ▼1.98
Posts /wp-admin/edit.php3.36 ▲0.0143.93 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.94 ▼1.72
Media Library /wp-admin/upload.php3.23 ▲0.0134.13 ▼0.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Schema Review
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.031.72 ▼0.2344.11 ▼0.47
Dashboard /wp-admin2,206 ▲185.91 ▲1.02100.54 ▼16.3442.71 ▼3.23
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0333.91 ▼0.9632.15 ▼4.16
Add New Post /wp-admin/post-new.php1,514 ▼1917.72 ▼5.39714.04 ▲59.7660.39 ▲5.68
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.0596.38 ▼3.8141.95 ▼1.53

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The primary PHP file in "Schema Review" version 1.3.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected178 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2103142178

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.48MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-3.png258.55KB87.77KB▼ 66.05%
assets/images/banner-772x250.png11.24KB4.61KB▼ 59.03%
assets/images/icon-256x256.png9.10KB4.53KB▼ 50.23%
assets/images/screenshot-1.png175.71KB45.71KB▼ 73.98%
assets/images/icon-128x128.png5.17KB2.66KB▼ 48.43%