89% web-recipe-clipper

Code Review | Web Recipe Clipper

WordPress plugin Web Recipe Clipper scored89%from 54 tests.

About plugin

  • Plugin page: web-recipe-clipper
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2019
  • Latest release: Mar 20, 2019
  • Number of updates: 8
  • Update frequency: every 1.6 days
  • Top authors: rocwing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Web Recipe Clipper
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.15 ▼7.32
Dashboard /wp-admin3.32 ▲0.0147.00 ▼3.64
Posts /wp-admin/edit.php3.37 ▲0.0145.02 ▼6.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.63 ▼16.55
Media Library /wp-admin/upload.php3.24 ▲0.0136.69 ▲0.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Web Recipe Clipper
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.30 ▼1.082.00 ▼0.4538.72 ▼8.69
Dashboard /wp-admin2,203 ▲155.79 ▼0.0399.16 ▼1.3540.38 ▼3.05
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0035.20 ▼5.0532.39 ▼2.69
Add New Post /wp-admin/post-new.php6,355 ▲4,83627.64 ▲4.36898.56 ▲223.6258.46 ▲0.56
Media Library /wp-admin/upload.php1,391 ▲94.23 ▲0.0898.10 ▼13.7543.89 ▼3.38

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: recipe generator, gutenberg block, food, recipe, cooking

web-recipe-clipper/plugin.php 85% from 13 tests

Analyzing the main PHP file in "Web Recipe Clipper" version 1.0.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("web-recipe-clipper.php" instead of "plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 388 characters long)

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
No dangerous file extensions were detected279 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31348175
Sass33141
PHP284731
Markdown19030
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin