10% jumpout

Code Review | JumpOut

WordPress plugin JumpOut scored10%from 54 tests.

About plugin

  • Plugin page: jumpout
  • Plugin version: 3.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 25, 2014
  • Latest release: Jun 17, 2022
  • Number of updates: 57
  • Update frequency: every 49.5 days
  • Top authors: TheGP (98.25%)Otto42 (3.51%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,116 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/jumpout/class.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; JumpOut has a deprecated constructor

Server metrics [RAM: ▼1.70MB] [CPU: ▼50.02ms] Passed 4 tests

A check of server-side resources used by JumpOut
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.177.45 ▼28.48
Dashboard /wp-admin2.31 ▼0.997.78 ▼40.01
Posts /wp-admin/edit.php2.32 ▼1.057.07 ▼40.24
Add New Post /wp-admin/post-new.php2.31 ▼3.587.24 ▼91.36
Media Library /wp-admin/upload.php2.31 ▼0.927.95 ▼26.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

JumpOut: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.28 ▼0.441.64 ▲0.0944.73 ▲4.84
Dashboard /wp-admin2,214 ▲345.82 ▲0.1784.23 ▼4.0583.17 ▲37.09
Posts /wp-admin/edit.php2,134 ▲342.15 ▲0.1536.18 ▲1.6734.01 ▼2.48
Add New Post /wp-admin/post-new.php1,560 ▲3422.94 ▼0.59726.81 ▲97.5453.01 ▼7.84
Media Library /wp-admin/upload.php1,425 ▲284.23 ▲0.0797.10 ▼4.1474.75 ▲30.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/jumpout/class.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; JumpOut has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jumpout/launch.php
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/jumpout/templates/list.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jumpout/templates/list.php on line 1
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/jumpout/templates/list.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jumpout/templates/onecode.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jumpout/templates/list.php:125
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/jumpout/templates/onecode.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jumpout/templates/main_teamplate.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jumpout/templates/onecode.php:29
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jumpout/templates/list.php on line 107
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/jumpout/templates/list.php on line 107

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: popup, jumpout

jumpout/launch.php 92% from 13 tests

The principal PHP file in "JumpOut" v. 3.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jumpout.php" instead of "launch.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,319 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP84531481,100
PO File254106156
JavaScript120441
SVG10222

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity107.00
▷ Minimum class complexity80.00
▷ Maximum class complexity134.00
Average method complexity7.84
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods1858.06%
▷ Protected methods00.00%
▷ Private methods1341.94%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
PNG images were not found in this plugin