78% jellyfish-invaders

Code Review | Jellyfish Invaders

WordPress plugin Jellyfish Invaders scored78%from 54 tests.

About plugin

  • Plugin page: jellyfish-invaders
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4
  • WordPress version: 6.3.1
  • First release: Jan 6, 2013
  • Latest release: Apr 2, 2020
  • Number of updates: 11
  • Update frequency: every 240.3 days
  • Top authors: toxicToad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,492 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.08MB] [CPU: ▼8.10ms] Passed 4 tests

An overview of server-side resources used by Jellyfish Invaders
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.40 ▼2.10
Dashboard /wp-admin3.39 ▲0.0945.51 ▼3.53
Posts /wp-admin/edit.php3.51 ▲0.1549.67 ▼3.06
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.14 ▼23.70
Media Library /wp-admin/upload.php3.32 ▲0.0835.44 ▲0.77
Jellyfish Invaders /wp-admin/themes.php?page=jellyfish-invaders3.2630.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jellyfish Invaders
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,058 ▲32313.95 ▼0.3522.33 ▲20.5443.12 ▼6.56
Dashboard /wp-admin2,210 ▲195.90 ▲1.00105.46 ▲2.7741.91 ▼1.51
Posts /wp-admin/edit.php2,093 ▲12.02 ▼0.1640.28 ▼0.5535.82 ▲1.17
Add New Post /wp-admin/post-new.php1,550 ▲3623.31 ▲5.81676.62 ▲42.1152.06 ▲0.43
Media Library /wp-admin/upload.php1,392 ▲44.15 ▼0.0997.11 ▲0.9141.05 ▼4.95
Jellyfish Invaders /wp-admin/themes.php?page=jellyfish-invaders9942.1623.4729.25

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_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/themes.php?page=jellyfish-invaders
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=jellyfish-invaders
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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-invaders/jellyfish_invaders.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: sci fi, 8bit, visual effect, space invaders, animation...

jellyfish-invaders/jellyfish_invaders.php 92% from 13 tests

Analyzing the main PHP file in "Jellyfish Invaders" version 0.9
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jellyfish-invaders.php" instead of "jellyfish_invaders.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,377 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript236106972
PHP26173381
CSS12624

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/space_invader_small.png59.14KB3.21KB▼ 94.57%
images/space_invader_large.png11.58KB4.87KB▼ 57.97%
images/space_invader_medium.png5.65KB3.20KB▼ 43.38%