84% disable-cookbook-ratings

Code Review | Disable Cookbook Ratings

WordPress plugin Disable Cookbook Ratings scored84%from 54 tests.

About plugin

  • Plugin page: disable-cookbook-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 10, 2017
  • Latest release: Jul 23, 2021
  • Number of updates: 7
  • Update frequency: every 193.0 days
  • Top authors: jennettefulda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /949 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.84ms] Passed 4 tests

An overview of server-side resources used by Disable Cookbook Ratings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.07 ▲1.17
Dashboard /wp-admin3.31 ▲0.0150.58 ▲0.53
Posts /wp-admin/edit.php3.36 ▲0.0050.88 ▼1.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.11 ▼16.04
Media Library /wp-admin/upload.php3.23 ▲0.0039.31 ▲3.47

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Cookbook Ratings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.131.74 ▼0.2343.06 ▲3.61
Dashboard /wp-admin2,198 ▲245.56 ▲0.0187.81 ▲3.7338.73 ▼4.42
Posts /wp-admin/edit.php2,103 ▲61.94 ▼0.0440.60 ▲6.7939.00 ▲1.00
Add New Post /wp-admin/post-new.php1,533 ▼222.99 ▲4.84659.96 ▲16.8353.86 ▼19.64
Media Library /wp-admin/upload.php1,400 ▼04.10 ▼0.06111.62 ▲6.3450.01 ▲4.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/disable-cookbook-ratings/disable-cookbook-ratings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: disable, recipes, schema, cookbook, ratings...

disable-cookbook-ratings/disable-cookbook-ratings.php Passed 13 tests

"Disable Cookbook Ratings" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
124 characters long description:
Disables ratings in the Cookbook recipe plugin. WARNING! This will prevent your Google Rich Cards from being fully enhanced.

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 plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP193112

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected