10% 42u-jetpack-booster

Code Review | 42U Jetpack Booster

WordPress plugin 42U Jetpack Booster scored 10% from 54 tests.

About plugin

  • Plugin page: 42u-jetpack-booster
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 5.9.2
  • First release: Sep 17, 2012
  • Latest release: Nov 6, 2012
  • Number of updates: 26
  • Update frequency: every 2.0 days
  • Top authors: 42urick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 4,111 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/42u-jetpack-booster/inc/FTU.php+430
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Taxonomy_Terms has a deprecated constructor

Server metrics [RAM: ▼2.18MB] [CPU: ▼339.77ms] Passed 4 tests

Analyzing server-side resources used by 42U Jetpack Booster
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.384.76 ▼45.93
Dashboard /wp-admin2.25 ▼1.194.77 ▼29.40
Posts /wp-admin/edit.php2.25 ▼1.425.53 ▼34.41
Add New Post /wp-admin/post-new.php2.25 ▼4.755.26 ▼1,249.35
Media Library /wp-admin/upload.php2.25 ▼1.084.74 ▼26.35
Jetpack Booster Options /wp-admin/admin.php?page=42u-jetpack-booster/42u-jetpack-booster.php2.255.08
42 Umbrellas /wp-admin/admin.php?page=42-Umbrellas2.255.63

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for 42U Jetpack Booster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,951 ▲19716.21 ▲0.5510.23 ▲2.392.28 ▼0.35
Dashboard /wp-admin2,939 ▲846.06 ▼0.01117.65 ▼16.06156.49 ▼8.30
Posts /wp-admin/edit.php2,703 ▲93.25 ▲0.0165.73 ▲2.04136.94 ▼10.80
Add New Post /wp-admin/post-new.php1,695 ▼2215.73 ▼5.35400.08 ▼44.08155.25 ▼3.67
Media Library /wp-admin/upload.php1,745 ▲505.58 ▲0.06145.93 ▲6.04191.93 ▼3.28
Jetpack Booster Options /wp-admin/admin.php?page=42u-jetpack-booster/42u-jetpack-booster.php2,0698.74172.57206.86
42 Umbrellas /wp-admin/admin.php?page=42-Umbrellas1,0682.4353.0199.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/42u-jetpack-booster/inc/FTU.php+430
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Taxonomy_Terms has a deprecated constructor

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=42-Umbrellas
    • > Deprecated in wp-content/plugins/42u-jetpack-booster/inc/FTU.php+430
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Taxonomy_Terms has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=42-Umbrellas
    • > Warning in wp-content/plugins/42u-jetpack-booster/inc/FTU.php+72
    Use of undefined constant FTU_VERSION - assumed 'FTU_VERSION' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=42-Umbrellas
    • > Deprecated in wp-content/plugins/42u-jetpack-booster/42u-jetpack-booster.php+40
    Non-static method FTU::cleanOptions() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=42-Umbrellas
    • > Deprecated in wp-content/plugins/42u-jetpack-booster/42u-jetpack-booster.php+252
    Non-static method FTU::set_post_type_icon() should not be called statically
    • > GET request to /wp-admin/admin.php?page=42u-jetpack-booster/42u-jetpack-booster.php
    • > Notice in wp-content/plugins/42u-jetpack-booster/42u-jetpack-booster.php+224
    Undefined index: disable_HTMLemail

SRP 0% 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 take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/42u-jetpack-booster/inc/email/email_template.php
    • > /wp-content/plugins/42u-jetpack-booster/inc/splash.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant FTU_VERSION - assumed 'FTU_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/42u-jetpack-booster/inc/FTU.php on line 72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/42u-jetpack-booster/inc/FTU.php:38
    • > PHP Warning
      Use of undefined constant FTU_VERSION - assumed 'FTU_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/42u-jetpack-booster/inc/FTU.php on line 72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/42u-jetpack-booster/inc/FTU.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (The basic HTML email template.)
Please take inspiration from this readme.txt

42u-jetpack-booster/42u-jetpack-booster.php Passed 13 tests

The primary PHP file in "42U Jetpack Booster" version 1.3.2 is used by WordPress to initiate all plugin functionality
92 characters long description:
The 42U Jetpack Booster adds redirect tags and HTML email templates to Jetpack Contact Forms

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
Good job! No executable or dangerous file extensions detected827 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4259143823
JavaScript1203
CSS2111

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.14
▷ Minimum class complexity6.00
▷ Maximum class complexity21.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods4697.87%
▷ Protected methods00.00%
▷ Private methods12.13%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/jetpack_booster_adminmenu16-sprite_2x.png1.30KB0.69KB▼ 47.07%
images/jetpack_booster_adminpage32.png0.77KB0.39KB▼ 50.19%
images/jetpack_booster_adminmenu16-sprite.png0.69KB0.43KB▼ 37.75%
inc/images/42U_adminpage32.png1.33KB1.18KB▼ 11.22%
inc/images/42U_adminpage32_2x.png3.26KB2.25KB▼ 30.80%