84% cherry-picker

Code Review | Cherry Picker

WordPress plugin Cherry Picker scored84%from 54 tests.

About plugin

  • Plugin page: cherry-picker
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Oct 27, 2020
  • Latest release: Jun 15, 2023
  • Number of updates: 26
  • Update frequency: every 37.0 days
  • Top authors: mosquid (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,184 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.04ms] Passed 4 tests

This is a short check of server-side resources used by Cherry Picker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.56 ▼2.39
Dashboard /wp-admin3.34 ▲0.0446.64 ▼1.48
Posts /wp-admin/edit.php3.39 ▲0.0351.68 ▲3.72
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.80 ▼4.65
Media Library /wp-admin/upload.php3.26 ▲0.0335.13 ▲0.36

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Cherry Picker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.59 ▼1.004.51 ▲2.6242.75 ▲2.01
Dashboard /wp-admin2,222 ▲344.85 ▲0.02110.66 ▼2.9142.73 ▼4.40
Posts /wp-admin/edit.php2,105 ▲132.05 ▲0.0240.50 ▲2.9434.63 ▼3.97
Add New Post /wp-admin/post-new.php1,528 ▲923.06 ▼0.06679.63 ▲2.8651.70 ▼10.25
Media Library /wp-admin/upload.php1,407 ▲164.22 ▼0.0195.83 ▼7.7342.16 ▼4.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cherry-picker/admin/partials/cherry-picker-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: woocommerce, parser, scraper, woo, dropshipping

cherry-picker/cherry-picker.php 92% from 13 tests

The principal PHP file in "Cherry Picker" v. 1.2.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Git Repository: There should be no Git repositories present in your plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,003 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10722321,291
PHP12188458543
SVG20283
CSS21466
YAML12020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.88
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods44
▷ Static methods511.36%
▷ Public methods3375.00%
▷ Protected methods00.00%
▷ Private methods1125.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin