89% plutus-recipe-pro

Code Review | Plutus Recipe Pro

WordPress plugin Plutus Recipe Pro scored89%from 54 tests.

About plugin

  • Plugin page: plutus-recipe-pro
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2019
  • Latest release: Jun 12, 2019
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: plutusdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /635 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.56MB] [CPU: ▲3.88ms] Passed 4 tests

Server-side resources used by Plutus Recipe Pro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5954.07 ▲14.69
Dashboard /wp-admin3.88 ▲0.5852.83 ▲3.69
Posts /wp-admin/edit.php3.93 ▲0.5848.47 ▲0.14
Add New Post /wp-admin/post-new.php6.48 ▲0.5993.39 ▲1.34
Media Library /wp-admin/upload.php3.74 ▲0.5145.18 ▲10.33

Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/plutus-recipe-pro/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Plutus Recipe Pro: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17913.71 ▼0.678.12 ▲6.5442.20 ▼0.08
Dashboard /wp-admin2,221 ▲215.85 ▲0.03100.86 ▼6.6241.38 ▼7.19
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0234.47 ▼5.6035.89 ▲2.49
Add New Post /wp-admin/post-new.php7,327 ▲5,79525.75 ▲2.681,033.37 ▲387.4058.08 ▲6.43
Media Library /wp-admin/upload.php1,394 ▼64.21 ▼0.0998.29 ▼5.0243.90 ▼2.70

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

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: food, recipes, seo, cooking, recipe...

plutus-recipe-pro/plutus-recipe-pro.php 85% from 13 tests

The main PHP script in "Plutus Recipe Pro" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected6,182 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP345873693,257
CSS8249462,476
JavaScript84518449

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.22
▷ Minimum class complexity3.00
▷ Maximum class complexity48.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods56
▷ Static methods3053.57%
▷ Public methods3257.14%
▷ Protected methods47.14%
▷ Private methods2035.71%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/plutus.png6.92KB3.41KB▼ 50.78%
images/plutus-placeholder.png100.24KB73.05KB▼ 27.12%