99% recipe-snippets

Code Review | SEO Recipe Snippets

WordPress plugin SEO Recipe Snippets scored 99% from 54 tests.

About plugin

  • Plugin page: recipe-snippets
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 5.8.1
  • First release: Nov 14, 2015
  • Latest release: Sep 1, 2019
  • Number of updates: 4
  • Update frequency: every 346.7 days
  • Top authors: Waterloo Plugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 2,983 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼140.95ms] Passed 4 tests

Analyzing server-side resources used by SEO Recipe Snippets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0237.86 ▲2.09
Dashboard /wp-admin3.08 ▲0.0346.20 ▲4.22
Posts /wp-admin/edit.php3.17 ▲0.0645.20 ▼1.54
Add New Post /wp-admin/post-new.php5.44 ▲0.0085.45 ▼564.05
Media Library /wp-admin/upload.php3.02 ▲0.0228.44 ▼0.30

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for SEO Recipe Snippets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.98 ▲0.068.98 ▲0.3852.68 ▲7.42
Dashboard /wp-admin2,967 ▲335.84 ▼0.07140.39 ▼4.56114.84 ▼4.09
Posts /wp-admin/edit.php2,736 ▼32.70 ▲0.0068.05 ▼2.3490.03 ▲0.23
Add New Post /wp-admin/post-new.php1,672 ▲9118.86 ▼1.85376.17 ▼17.34108.52 ▼1.80
Media Library /wp-admin/upload.php1,804 ▼35.01 ▼0.02148.39 ▼3.54125.31 ▲3.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === recipe-snippets === )
  • Screenshots: Screenshot #1 (A Google search result with rich recipe snippets) image missing
The official readme.txt might help

recipe-snippets/recipe-snippets.php Passed 13 tests

"SEO Recipe Snippets" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
53 characters long description:
Add recipe snippets to Google search results for SEO.

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
There were no executable files found in this plugin127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22317127

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.45MB with 0.31MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png457.31KB135.76KB▼ 70.31%