84% easy-integrated-image-gallery

Code Review | Easy Integrated Image Gallery

WordPress plugin Easy Integrated Image Gallery scored84%from 54 tests.

About plugin

  • Plugin page: easy-integrated-i...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2017
  • Latest release: Nov 18, 2017
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: jensmueller (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,402 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.05ms] Passed 4 tests

A check of server-side resources used by Easy Integrated Image Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0249.19 ▲4.26
Dashboard /wp-admin3.33 ▲0.0249.49 ▼0.91
Posts /wp-admin/edit.php3.38 ▲0.0250.19 ▼2.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.93 ▼23.01
Media Library /wp-admin/upload.php3.25 ▲0.0238.36 ▲2.58

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

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

Browser metrics Passed 4 tests

Easy Integrated Image Gallery: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.362.23 ▲0.3841.29 ▼7.60
Dashboard /wp-admin2,203 ▲125.83 ▼0.06105.32 ▲4.7342.17 ▼2.22
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0040.98 ▼0.7634.72 ▼1.17
Add New Post /wp-admin/post-new.php1,528 ▲1423.20 ▲5.56694.55 ▼21.4460.26 ▲4.31
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.04103.57 ▲0.4844.25 ▼0.71

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-integrated-image-gallery/easy-integrated-image-gallery.php:12

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

readme.txt 94% from 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
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === easy-integrated-image-gallery === )
The official readme.txt might help

easy-integrated-image-gallery/easy-integrated-image-gallery.php Passed 13 tests

"Easy Integrated Image Gallery" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Mit EIIG können Sie Bilder in einer Gallerie in WordPress anzeigen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected134 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31414132
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected