56% responsive-cropped-yummy-images-pictures-and-thumbnails

Code Review | Responsive cropped Yummy images, pictures and thumbnails

WordPress plugin Responsive cropped Yummy images, pictures and thumbnails scored 56% from 54 tests.

About plugin

  • Plugin page: responsive-croppe...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.3
  • WordPress version: 6.3.1
  • First release: Jul 31, 2019
  • Latest release: Aug 2, 2019
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: yaroinfo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 642 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.08MB] [CPU: ▼2.76ms] Passed 4 tests

An overview of server-side resources used by Responsive cropped Yummy images, pictures and thumbnails
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.74 ▼4.64
Dashboard /wp-admin3.40 ▲0.0950.67 ▲0.82
Posts /wp-admin/edit.php3.51 ▲0.1557.97 ▲6.77
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.21 ▼10.98
Media Library /wp-admin/upload.php3.29 ▲0.0739.98 ▲3.75
Dashboard /wp-admin/plugins.php?page=meta-box3.4239.75
Chat opener /wp-admin/options-general.php?page=yraci_options3.5343.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive cropped Yummy images, pictures and thumbnails
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,006 ▲27116.09 ▲1.711.77 ▼0.0739.81 ▼5.47
Dashboard /wp-admin2,412 ▲2247.43 ▲2.32156.71 ▲52.1238.76 ▼2.75
Posts /wp-admin/edit.php2,329 ▲2403.83 ▲1.8266.98 ▲29.7732.71 ▼0.68
Add New Post /wp-admin/post-new.php1,564 ▲3023.93 ▲0.73622.95 ▼69.4935.74 ▼20.03
Media Library /wp-admin/upload.php1,461 ▲705.10 ▲0.7689.19 ▼6.3444.52 ▲1.19
Dashboard /wp-admin/plugins.php?page=meta-box2,0053.5752.3194.23
Chat opener /wp-admin/options-general.php?page=yraci_options6701.7010.1919.65

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 203 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yraci_options
    • > Deprecated in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/phug/util/src/Phug/Util/Partial/OptionTrait.php+178
    array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead

SRP 0% from 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
Almost there! Just fix the following items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/wpmetabox/meta-box/inc/templates/video.php
    • > /wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/wpmetabox/meta-box/inc/templates/media.php
    • > /wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/wpmetabox/meta-box/inc/templates/upload.php
    • > /wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/wpmetabox/meta-box/inc/templates/image-advanced.php
    • > /wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/wpmetabox/meta-box/inc/templates/audio.php
  • 680× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Phug\\Renderer\\AbstractAdapter' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/phug/renderer/src/Phug/Renderer/Adapter/FileAdapter.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Phug\\Compiler' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/pug-php/pug/src/Pug/Compiler.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Phug\\Parser\ode' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/phug/parser/src/Phug/Parser/Node/KeywordNode.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'NodejsPhpFallback\\WrapperInterface' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/nodejs-php-fallback/nodejs-php-fallback/src/NodejsPhpFallback/Wrapper.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Cluster\\Distributor\\HashRing' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/predis/predis/src/Cluster/Distributor/KetamaRing.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\ServerEvalSHA' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/predis/predis/src/Command/ScriptCommand.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/predis/predis/src/Command/ServerTime.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Number_Field' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/wpmetabox/meta-box/inc/fields/range.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\KeyExpireAt' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/predis/predis/src/Command/KeyPreciseExpireAt.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/predis/predis/src/Command/KeyRestore.php:19

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/plugins.php?page=meta-box
    • > Javascript (severe) in unknown
    /wp-admin/plugins.php?page=meta-box 1992:22 Uncaught TypeError: $ is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

responsive-cropped-yummy-images-pictures-and-thumbnails/responsive-cropped-yummy-images-pictures-and-thumbnails.php 92% from 13 tests

This is the main PHP file of "Responsive cropped Yummy images, pictures and thumbnails" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
These items require your attention
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .ls - LightWave LScript File in LightWave
      • wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/nodejs-php-fallback/nodejs-php-fallback/node_modules/core-js/build/Gruntfile.ls
      • wp-content/plugins/responsive-cropped-yummy-images-pictures-and-thumbnails/vendor/nodejs-php-fallback/nodejs-php-fallback/node_modules/core-js/build/build.ls
235,813 lines of code in 4,556 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2,62323,55646,009136,460
PHP92310,01921,65344,142
JSON283125025,853
Markdown1226,219017,441
TypeScript93204342,415
CSS431871442,409
Pug287298471,693
HTML201145311,620
PO File115145671,384
C/C++ Header135001,003
YAML23488836
Sass4470344
XML37078
Handlebars28050
make1101140
INI16624
Ruby1206
Bourne Shell1015
SVG1005
Stylus2003
CoffeeScript2102

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.14
▷ Minimum class complexity1.00
▷ Maximum class complexity142.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces94
Interfaces75
Traits52
Classes753
▷ Abstract classes516.77%
▷ Concrete classes70293.23%
▷ Final classes60.85%
Methods3,270
▷ Static methods53516.36%
▷ Public methods2,64480.86%
▷ Protected methods44813.70%
▷ Private methods1785.44%
Functions226
▷ Named functions6327.88%
▷ Anonymous functions16372.12%
Constants167
▷ Global constants158.98%
▷ Class constants15291.02%
▷ Public constants152100.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
15 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/wpmetabox/meta-box/img/jqueryui/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
vendor/wpmetabox/meta-box/img/jqueryui/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
vendor/wpmetabox/meta-box/inc/about/images/online-generator.png10.94KB11.03KB0.00%
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%