88% easy-slidebox

Code Review | Easy SlideBox

WordPress plugin Easy SlideBox scored 88% from 54 tests.

About plugin

  • Plugin page: easy-slidebox
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 5.8.1
  • First release: Apr 24, 2015
  • Latest release: Apr 24, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: fredo85 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 647 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼144.21ms] Passed 4 tests

An overview of server-side resources used by Easy SlideBox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.91 ▲16.96
Dashboard /wp-admin3.11 ▲0.0540.51 ▼11.42
Posts /wp-admin/edit.php3.23 ▲0.1146.31 ▼0.32
Add New Post /wp-admin/post-new.php5.45 ▲0.0186.69 ▼568.88
Media Library /wp-admin/upload.php3.03 ▲0.0331.27 ▲3.80
SlideBox /wp-admin/themes.php?page=Slide-Box3.0336.66

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Easy SlideBox: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,989 ▲39317.76 ▲2.2112.42 ▲3.5743.79 ▼3.80
Dashboard /wp-admin3,175 ▲2448.00 ▲2.06162.78 ▲21.64110.53 ▲3.65
Posts /wp-admin/edit.php2,970 ▲2314.32 ▲1.6183.46 ▲21.3587.68 ▼7.10
Add New Post /wp-admin/post-new.php1,879 ▲20919.18 ▲0.08358.58 ▼21.16130.61 ▲23.24
Media Library /wp-admin/upload.php1,816 ▲94.81 ▼0.25110.57 ▼37.77122.14 ▲3.89
SlideBox /wp-admin/themes.php?page=Slide-Box1,4433.3668.6799.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-slidebox/index.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/themes.php?page=Slide-Box
    • > Network (severe)
    http://localhost/wordpress_plugins/wp-content/plugins/slidebox/moins.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/themes.php?page=Slide-Box
    • > Network (severe)
    http://localhost/wordpress_plugins/wp-content/plugins/slidebox/plus.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

easy-slidebox/index.php 92% from 13 tests

"Easy SlideBox" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-slidebox.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin292 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP33919189
JavaScript313960
CSS22043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plus.png0.34KB0.17KB▼ 51.00%
moins.png0.28KB0.15KB▼ 46.13%