84% schemify

Code Review | Schemify

WordPress plugin Schemify scored 84% from 54 tests.

About plugin

  • Plugin page: schemify
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 31, 2017
  • Latest release: Jan 31, 2017
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: stevegrunwell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,723 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.02MB] [CPU: ▼3.15ms] Passed 4 tests

A check of server-side resources used by Schemify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.28 ▼0.07
Dashboard /wp-admin3.31 ▲0.0145.98 ▼5.73
Posts /wp-admin/edit.php3.36 ▲0.0146.15 ▲2.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.10 ▼5.02
Media Library /wp-admin/upload.php3.23 ▲0.0133.91 ▼1.78

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Schemify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4613.34 ▼0.964.49 ▲2.4739.92 ▼14.86
Dashboard /wp-admin2,206 ▲205.89 ▲0.9196.57 ▼23.5839.11 ▼5.73
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.1434.32 ▼1.6131.48 ▼3.69
Add New Post /wp-admin/post-new.php6,462 ▲4,94320.36 ▼2.85932.12 ▲269.4655.67 ▼0.72
Media Library /wp-admin/upload.php1,382 ▼34.26 ▲0.1199.86 ▼2.2948.87 ▲3.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Schemify\\Compat\\WordPressSEO\\add_filter() in wp-content/plugins/schemify/includes/compat/wordpress-seo.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Schemify\\Schemas\\CreativeWork' not found in wp-content/plugins/schemify/includes/schemas/WebSite.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Schemify\\Admin\\add_action() in wp-content/plugins/schemify/includes/admin.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Schemify\\Schemas\\CreativeWork' not found in wp-content/plugins/schemify/includes/schemas/WebPage.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Schemify\\Schemas\\WebSite' not found in wp-content/plugins/schemify/includes/schemas/WP/WebSite.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Schemify\\Compat\\add_action() in wp-content/plugins/schemify/includes/compat.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'Schemify\\Schemas\\Thing' not found in wp-content/plugins/schemify/includes/schemas/Person.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Schemify\\Schemas\\Person' not found in wp-content/plugins/schemify/includes/schemas/WP/User.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Schemify\\Schemas\\MediaObject' not found in wp-content/plugins/schemify/includes/schemas/ImageObject.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Schemify\\Cache\\add_action() in wp-content/plugins/schemify/includes/cache.php:31

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === schemify === )
The official readme.txt might help

schemify/schemify.php Passed 13 tests

The main PHP script in "Schemify" version 0.1.0 is automatically included on every request by WordPress
63 characters long description:
Automatically generate Schema.org JSON+LD markup for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected779 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP23221687739
JSON10028
Markdown29012

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.30
Average class complexity2.73
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces10
Interfaces0
Traits2
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods4093.02%
▷ Protected methods36.98%
▷ Private methods00.00%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin