84% jiffy-gallery-press

Code Review | Jiffy Gallery Press

WordPress plugin Jiffy Gallery Press scored84%from 54 tests.

About plugin

  • Plugin page: jiffy-gallery-press
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.3-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 19, 2017
  • Latest release: Mar 26, 2017
  • Number of updates: 8
  • Update frequency: every 4.3 days
  • Top authors: maratbn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

A check of server-side resources used by Jiffy Gallery Press
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.22 ▼9.41
Dashboard /wp-admin3.38 ▲0.0845.93 ▼15.06
Posts /wp-admin/edit.php3.43 ▲0.0849.59 ▼2.93
Add New Post /wp-admin/post-new.php5.96 ▲0.0881.37 ▼15.33
Media Library /wp-admin/upload.php3.30 ▲0.0842.37 ▲4.12
Jiffy Gallery Press /wp-admin/options-general.php?page=plugin_JiffyGalleryPress_admin3.3030.90

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jiffy Gallery Press
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.27 ▼0.951.83 ▲0.0040.64 ▼1.18
Dashboard /wp-admin2,210 ▲225.80 ▼0.08116.02 ▲8.5244.15 ▲2.05
Posts /wp-admin/edit.php2,096 ▲102.00 ▼0.0638.93 ▼1.4334.38 ▼5.61
Add New Post /wp-admin/post-new.php1,547 ▲3318.55 ▲0.98616.30 ▼23.0160.23 ▲9.42
Media Library /wp-admin/upload.php1,389 ▲14.21 ▲0.00100.48 ▼6.2045.77 ▲1.06
Jiffy Gallery Press /wp-admin/options-general.php?page=plugin_JiffyGalleryPress_admin7902.0226.8929.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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)
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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jiffy-gallery-press/jiffy-gallery-press.php:66

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: image gallery, expand image, media, image, gallery

jiffy-gallery-press/jiffy-gallery-press.php 92% from 13 tests

The main PHP script in "Jiffy Gallery Press" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
No dangerous file extensions were detected617 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP112436398
JavaScript2107203182
CSS1192337

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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
Namespaces1
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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
No PNG files were detected