78% orbit-slider-gallery

Code Review | Orbit_Gallery

WordPress plugin Orbit_Gallery scored 78% from 54 tests.

About plugin

  • Plugin page: orbit-slider-gallery
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2015
  • Latest release: Jun 2, 2015
  • Number of updates: 11
  • Update frequency: every 4.2 days
  • Top authors: gabriele.b (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 6,666 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
Install script ran successfully

Server metrics [RAM: ▼0.63MB] [CPU: ▼19.26ms] Passed 4 tests

A check of server-side resources used by Orbit_Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.10 ▲2.30
Dashboard /wp-admin3.36 ▲0.0543.86 ▼6.68
Posts /wp-admin/edit.php3.41 ▲0.0548.94 ▼3.50
Add New Post /wp-admin/post-new.php3.19 ▼2.7034.57 ▼59.92
Media Library /wp-admin/upload.php3.28 ▲0.0532.65 ▼6.94
Add New /wp-admin/post-new.php?post_type=orbitjs_slider3.1433.95
Orbit sliders /wp-admin/edit.php?post_type=orbitjs_slider3.3239.08

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Orbit_Gallery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲19613.70 ▼0.687.89 ▲5.9840.09 ▼1.06
Dashboard /wp-admin2,249 ▲614.87 ▼0.03109.79 ▲0.2537.68 ▼6.29
Posts /wp-admin/edit.php2,132 ▲432.05 ▲0.0540.05 ▲2.3735.96 ▲4.79
Add New Post /wp-admin/post-new.php1,578 ▲4318.17 ▼4.91629.42 ▼47.6250.28 ▼2.18
Media Library /wp-admin/upload.php1,431 ▲434.23 ▲0.0498.52 ▼16.5742.61 ▼2.83
Add New /wp-admin/post-new.php?post_type=orbitjs_slider2,3627.59185.1065.26
Orbit sliders /wp-admin/edit.php?post_type=orbitjs_slider1,1041.9330.9028.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+227
    Undefined index: orbit_slider_box_nonce
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+163
    Undefined offset: 0
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+167
    Undefined offset: 1
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+171
    Undefined offset: 2
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+175
    Undefined offset: 3
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+179
    Undefined offset: 4
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+183
    Undefined offset: 5
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+188
    Undefined offset: 6
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+193
    Undefined offset: 7
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+198
    Undefined offset: 8
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+203
    Undefined offset: 9
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+208
    Undefined offset: 10
    • > GET request to /wp-admin/post-new.php?post_type=orbitjs_slider
    • > Notice in wp-content/plugins/orbit-slider-gallery/orbit_slider.php+213
    Undefined offset: 11

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/orbit-slider-gallery/include/options_page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/orbit-slider-gallery/orbit_slider.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: foundation, slider, orbit, responsive slider

orbit-slider-gallery/orbit_slider.php 92% from 13 tests

The main PHP script in "Orbit_Gallery" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("orbit-slider-gallery.php" instead of "orbit_slider.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
Success! There were no dangerous files found in this plugin10,571 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript201,2584775,821
CSS44472374,458
PHP211317278
Markdown15014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin