10% wp-crop-stop

Code Review | WP Crop Stop

WordPress plugin WP Crop Stop scored 10% from 54 tests.

About plugin

  • Plugin page: wp-crop-stop
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 19, 2017
  • Latest release: Jan 19, 2019
  • Number of updates: 9
  • Update frequency: every 71.1 days
  • Top authors: evilex (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 2,176 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-crop-stop/wp-crop-stop.php+23
    Undefined variable: wpdb

Server metrics [RAM: ▼0.23MB] [CPU: ▼16.32ms] Passed 4 tests

An overview of server-side resources used by WP Crop Stop
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.87 ▼4.67
Dashboard /wp-admin3.06 ▼0.2427.82 ▼21.44
Posts /wp-admin/edit.php3.20 ▼0.1536.11 ▼13.76
Add New Post /wp-admin/post-new.php5.44 ▼0.4470.95 ▼24.69
Media Library /wp-admin/upload.php3.13 ▼0.1030.18 ▼5.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Crop Stop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.68 ▼0.731.85 ▲0.2740.55 ▲1.49
Dashboard /wp-admin2,207 ▲214.86 ▼0.0996.57 ▼13.4636.75 ▼5.03
Posts /wp-admin/edit.php2,094 ▲52.06 ▲0.0339.42 ▼3.1034.71 ▼1.45
Add New Post /wp-admin/post-new.php1,544 ▲918.30 ▼4.61591.45 ▼16.0563.40 ▼1.50
Media Library /wp-admin/upload.php1,390 ▲24.17 ▼0.0092.72 ▼11.0441.65 ▲0.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/wp-crop-stop/includes/yummi-plugins.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-crop-stop/wp-crop-stop.php:17
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-crop-stop/includes/admin.php on line 7
    • > PHP Warning
      include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/wp-crop-stop/includes/admin.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-crop-stop/includes/admin.php:51
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-crop-stop/includes/admin.php on line 7

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)
There were no browser issues 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
No plugin tags provided

wp-crop-stop/wp-crop-stop.php 85% from 13 tests

The main file in "WP Crop Stop" v. 0.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected657 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS45024553
PHP32422104

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/dashicons-yummi.png1.81KB0.85KB▼ 52.89%