100% advanced-before-after-slider

Code Review | Advanced Before After Slider

WordPress plugin Advanced Before After Slider scored 100% from 53 tests.

About plugin

  • Plugin page: advanced-before-a...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Aug 13, 2021
  • Latest release: Aug 13, 2021
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: udaymoradiya (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 66 total downloads

Benchmarks

Plugin footprint Passed 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼263.67ms] Passed 4 tests

A check of server-side resources used by Advanced Before After Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1437.13 ▲14.06
Dashboard /wp-admin3.07 ▲0.0242.45 ▼1.44
Posts /wp-admin/edit.php3.12 ▲0.0239.52 ▲0.96
Add New Post /wp-admin/post-new.php5.43 ▲0.0192.53 ▼1,046.51
Media Library /wp-admin/upload.php3.01 ▲0.0128.02 ▼7.70

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Before After Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲20316.73 ▲0.8614.53 ▲4.5947.82 ▼3.24
Dashboard /wp-admin2,930 ▲775.93 ▲0.10156.99 ▲15.30101.90 ▼9.06
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0066.60 ▲0.7890.80 ▼4.09
Add New Post /wp-admin/post-new.php1,851 ▲19417.74 ▼1.05365.28 ▼24.69103.61 ▼3.21
Media Library /wp-admin/upload.php1,778 ▲65.01 ▼0.01155.67 ▼5.25110.08 ▼6.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: before after slider, before after image, before-after slider

advanced-before-after-slider/advanced-before-after-slider.php 92% from 13 tests

The main PHP file in "Advanced Before After Slider" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin733 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript214480512
CSS1290176
PHP141145

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin