89% easy-swipebox

Code Review | Easy SwipeBox

WordPress plugin Easy SwipeBox scored89%from 54 tests.

About plugin

  • Plugin page: easy-swipebox
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Feb 8, 2015
  • Latest release: Feb 26, 2021
  • Number of updates: 52
  • Update frequency: every 42.9 days
  • Top authors: LeoPeo (94.23%)deployer (7.69%)

Code review

54 tests

User reviews

16 reviews

Install metrics

3,000+ active /30,886 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.98ms] Passed 4 tests

Server-side resources used by Easy SwipeBox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.51 ▼3.92
Dashboard /wp-admin3.35 ▲0.0052.37 ▼9.17
Posts /wp-admin/edit.php3.40 ▲0.0452.38 ▲0.11
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.41 ▼10.92
Media Library /wp-admin/upload.php3.27 ▲0.0436.18 ▲2.21
Easy SwipeBox /wp-admin/options-general.php?page=easy-swipebox-settings3.2435.01

Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy SwipeBox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15513.60 ▼0.759.82 ▲7.9641.02 ▼3.09
Dashboard /wp-admin2,218 ▲445.81 ▲0.1588.72 ▲1.7339.05 ▼2.17
Posts /wp-admin/edit.php2,107 ▲102.30 ▲0.2741.28 ▲4.1437.70 ▲2.70
Add New Post /wp-admin/post-new.php1,547 ▲1923.86 ▲0.79660.67 ▼16.9040.41 ▼11.87
Media Library /wp-admin/upload.php1,427 ▲274.26 ▲0.0195.53 ▼1.9048.63 ▲4.51
Easy SwipeBox /wp-admin/options-general.php?page=easy-swipebox-settings1,1162.5139.6133.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === easy-swipebox === )
Please take inspiration from this readme.txt

easy-swipebox/easy-swipebox.php 92% from 13 tests

"Easy SwipeBox" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 195 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,883 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4133119861
PHP8188592691
CSS2303263
Markdown112024
YAML14623
XML16720
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.80
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods54
▷ Static methods00.00%
▷ Public methods4888.89%
▷ Protected methods00.00%
▷ Private methods611.11%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/img/icons.png0.71KB0.43KB▼ 39.64%