84% jarryd-and-the-jackles-elementor-random-image

Code Review | Jarryd And The Jackles - Elementor Random Image

WordPress plugin Jarryd And The Jackles - Elementor Random Image scored84%from 54 tests.

About plugin

  • Plugin page: jarryd-and-the-ja...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Apr 8, 2021
  • Latest release: Feb 5, 2022
  • Number of updates: 6
  • Update frequency: every 50.5 days
  • Top authors: jlisher (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.59ms] Passed 4 tests

An overview of server-side resources used by Jarryd And The Jackles - Elementor Random Image
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0946.74 ▲4.65
Dashboard /wp-admin3.39 ▲0.0952.19 ▼2.69
Posts /wp-admin/edit.php3.48 ▲0.1349.77 ▼5.63
Add New Post /wp-admin/post-new.php5.97 ▲0.0888.06 ▼18.69
Media Library /wp-admin/upload.php3.31 ▲0.0840.83 ▲7.96

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Jarryd And The Jackles - Elementor Random Image
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.47 ▲0.111.94 ▲0.2343.05 ▼3.85
Dashboard /wp-admin2,227 ▲364.90 ▲0.04100.82 ▼6.2040.06 ▼8.26
Posts /wp-admin/edit.php2,106 ▲202.02 ▼0.0136.30 ▼2.5635.99 ▼1.49
Add New Post /wp-admin/post-new.php1,555 ▲4118.32 ▲0.91643.42 ▼19.9656.06 ▲6.79
Media Library /wp-admin/upload.php1,403 ▲154.26 ▲0.0799.56 ▼10.7544.15 ▼2.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'JarrydAndTheJackles\\Elementor_Random_Image\\Widgets\\Base' not found in wp-content/plugins/jarryd-and-the-jackles-elementor-random-image/src/Widgets/WordsearchCreator.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/jarryd-and-the-jackles-elementor-random-image/src/Widgets/Base.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'JarrydAndTheJackles\\Elementor_Random_Image\\Widgets\\Base' not found in wp-content/plugins/jarryd-and-the-jackles-elementor-random-image/src/Widgets/RandomArticle.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: 8 ball, page builder, random, elementor, images...

jarryd-and-the-jackles-elementor-random-image/jarrydandthejackles-elementor-random-image.php 85% from 13 tests

The principal PHP file in "Jarryd And The Jackles - Elementor Random Image" v. 2.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("jarryd-and-the-jackles-elementor-random-image.php" instead of "jarrydandthejackles-elementor-random-image.php")
  • 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 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
Good job! No executable or dangerous file extensions detected628 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8150482627
JavaScript1021

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.60
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes250.00%
Methods60
▷ Static methods23.33%
▷ Public methods3253.33%
▷ Protected methods2338.33%
▷ Private methods58.33%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin