10% clippp-thumbnail-by-e3s

Code Review | Clip thumbnail by E3S

WordPress plugin Clip thumbnail by E3S scored10%from 54 tests.

About plugin

  • Plugin page: clippp-thumbnail-...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5
  • WordPress version: 6.3.1
  • First release: Apr 26, 2016
  • Latest release: Jun 30, 2016
  • Number of updates: 19
  • Update frequency: every 3.4 days
  • Top authors: e3service (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /657 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Compile error in wp-content/plugins/clippp-thumbnail-by-e3s/clippp-thumbnail.php+488
    Cannot use $this as parameter

Server metrics [RAM: ▼0.01MB] [CPU: ▼13.32ms] Passed 4 tests

An overview of server-side resources used by Clip thumbnail by E3S
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.79 ▼6.04
Dashboard /wp-admin3.31 ▼0.0453.25 ▼18.87
Posts /wp-admin/edit.php3.36 ▲0.0048.45 ▼3.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.13 ▼24.75
Media Library /wp-admin/upload.php3.23 ▲0.0039.31 ▲4.62

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

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • The filesystem usage should be lower than 25MB (currently using 65.40MB)
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Clip thumbnail by E3S
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.76 ▼0.821.66 ▼0.0742.00 ▼1.40
Dashboard /wp-admin2,221 ▲154.84 ▼0.06135.84 ▲31.2540.44 ▼4.71
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0134.77 ▼6.2233.28 ▼4.27
Add New Post /wp-admin/post-new.php1,545 ▲1423.33 ▲0.09676.78 ▲7.8371.60 ▲7.01
Media Library /wp-admin/upload.php1,400 ▼04.09 ▼0.14111.91 ▲4.1547.58 ▼2.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_stylesheet_directory_uri() in wp-content/plugins/clippp-thumbnail-by-e3s/theme/front-movie.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clippp-thumbnail-by-e3s/theme/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_active_sidebar() in wp-content/plugins/clippp-thumbnail-by-e3s/theme/footer.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clippp-thumbnail-by-e3s/page-template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/clippp-thumbnail-by-e3s/thumbnail-template.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/clippp-thumbnail-by-e3s/widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sydney_blog_layout() in wp-content/plugins/clippp-thumbnail-by-e3s/theme/posts.php:4
    • > PHP Fatal error
      Cannot use $this as parameter in wp-content/plugins/clippp-thumbnail-by-e3s/clippp-thumbnail.php on line 488
    • > PHP Fatal error
      Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/clippp-thumbnail-by-e3s/theme/contact.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/clippp-thumbnail-by-e3s/theme/home.php:3

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 79% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin tags were not defined
  • Contributors: Plugin contributors field is missing
  • Donate link: Invalid URI ("")
The official readme.txt might help

clippp-thumbnail-by-e3s/clippp-thumbnail.php 77% from 13 tests

Analyzing the main PHP file in "Clip thumbnail by E3S" version 1.0.4
Please make the necessary changes and 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
  • Main file name: The principal plugin file should be the same as the plugin slug ("clippp-thumbnail-by-e3s.php" instead of "clippp-thumbnail.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,868 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP12134100863
Sass311014662
JavaScript1402219
CSS4175663
PO File1171953
Ruby16138

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity22.50
▷ Minimum class complexity6.00
▷ Maximum class complexity39.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods22
▷ Static methods1568.18%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions18
▷ Named functions15.56%
▷ Anonymous functions1794.44%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin