84% jellyfish-backdrop

Code Review | Jellyfish backdrop

WordPress plugin Jellyfish backdrop scored84%from 54 tests.

About plugin

  • Plugin page: jellyfish-backdrop
  • Plugin version: 0.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5
  • WordPress version: 6.3.1
  • First release: Nov 16, 2014
  • Latest release: Aug 28, 2020
  • Number of updates: 15
  • Update frequency: every 142.5 days
  • Top authors: toxicToad (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /5,955 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.01ms] Passed 4 tests

An overview of server-side resources used by Jellyfish backdrop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0122.85 ▼21.89
Dashboard /wp-admin3.39 ▲0.0847.38 ▲0.18
Posts /wp-admin/edit.php3.50 ▲0.1449.56 ▼2.05
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.71 ▼8.58
Media Library /wp-admin/upload.php3.31 ▲0.0834.79 ▼3.52
Backdrop Slideshow /wp-admin/options-general.php?page=jellyfish-backdrop3.3133.27

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
jellyfish_backdrop_version
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Jellyfish backdrop
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.401.74 ▼0.6040.06 ▼2.65
Dashboard /wp-admin2,210 ▲195.85 ▲0.77106.74 ▲3.9639.21 ▼6.17
Posts /wp-admin/edit.php2,093 ▲12.02 ▲0.0139.18 ▲4.2035.10 ▲0.25
Add New Post /wp-admin/post-new.php1,545 ▲318.15 ▼0.15602.94 ▼42.9660.89 ▲6.90
Media Library /wp-admin/upload.php1,392 ▲14.24 ▲0.0297.94 ▼6.5143.00 ▼2.39
Backdrop Slideshow /wp-admin/options-general.php?page=jellyfish-backdrop1,0593.0948.9772.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • jellyfish_backdrop_version
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jellyfish-backdrop/jellyfish-backdrop.php:139

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: fullscreen, gallery, background, slideshow, image

jellyfish-backdrop/jellyfish-backdrop.php Passed 13 tests

"Jellyfish backdrop" version 0.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Add fullscreen background images and background slideshows to any WordPress page element.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin9,622 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript107897877,042
PHP33259071,382
CSS6161981,018
PO File54555180

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity103.33
▷ Minimum class complexity20.00
▷ Maximum class complexity262.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods94
▷ Static methods22.13%
▷ Public methods94100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
meta-box-class/js/select2/select2x2.png0.83KB0.77KB▼ 6.15%
meta-box-class/js/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
meta-box-class/js/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
meta-box-class/js/jquery-ui/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
meta-box-class/js/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%