83% all-in-one-schemaorg-rich-snippets

Code Review | Schema - All In One Schema Rich Snippets

WordPress plugin Schema - All In One Schema Rich Snippets scored83%from 54 tests.

About plugin

Code review

54 tests

User reviews

163 reviews

Install metrics

60,000+ active /1,655,943 total downloads


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: ▲1.01MB] [CPU: ▲0.73ms] Passed 4 tests

Server-side resources used by Schema - All In One Schema Rich Snippets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7741.51 ▲3.50
Dashboard /wp-admin4.42 ▲1.0852.32 ▼3.41
Posts /wp-admin/edit.php4.46 ▲1.1052.57 ▲6.57
Add New Post /wp-admin/post-new.php7.12 ▲1.2387.17 ▼3.59
Media Library /wp-admin/upload.php4.31 ▲1.0940.45 ▲6.41

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 18 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Schema - All In One Schema Rich Snippets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.14 ▼0.211.66 ▼0.0642.18 ▲2.45
Dashboard /wp-admin2,218 ▲415.62 ▲0.0090.30 ▲0.6435.72 ▼7.15
Posts /wp-admin/edit.php2,132 ▲352.03 ▲0.0539.88 ▲3.9133.75 ▼2.18
Add New Post /wp-admin/post-new.php7,700 ▲6,17419.18 ▼4.16885.12 ▲235.0558.02 ▼2.62
Media Library /wp-admin/upload.php1,422 ▲224.19 ▼0.12102.37 ▼1.7841.43 ▼4.45

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 18 options
    • theysaidso_admin_options
    • bsf_service
    • bsf_video
    • bsf_software
    • widget_recent-comments
    • bsf_article
    • bsf_review
    • bsf_product
    • bsf_recipe
    • bsf_person
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-schemaorg-rich-snippets/functions.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/all-in-one-schemaorg-rich-snippets/admin/index.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/all-in-one-schemaorg-rich-snippets/init.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: schemaorg, microdata, schema markup, schema, structured data...

all-in-one-schemaorg-rich-snippets/index.php 77% from 13 tests

The primary PHP file in "Schema - All In One Schema Rich Snippets" version 1.6.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 231 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("all-in-one-schemaorg-rich-snippets.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin12,752 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity41.00
▷ Minimum class complexity2.00
▷ Maximum class complexity156.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity99.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods912.16%
▷ Public methods5878.38%
▷ Protected methods00.00%
▷ Private methods1621.62%
▷ Named functions38100.00%
▷ Anonymous functions00.00%
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/star.png4.02KB1.51KB▼ 62.46%