94% advanced-reorder-image-text-slider

Code Review | Advanced Reorder Image Text Slider

WordPress plugin Advanced Reorder Image Text Slider scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-reorder-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2.1
  • WordPress version: 5.8.1
  • First release: Jun 23, 2017
  • Latest release: May 30, 2019
  • Number of updates: 4
  • Update frequency: every 177.0 days
  • Top authors: balasahebbhise (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 631 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼160.28ms] Passed 4 tests

Server-side resources used by Advanced Reorder Image Text Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0537.79 ▲10.26
Dashboard /wp-admin3.23 ▲0.1634.95 ▼4.70
Posts /wp-admin/edit.php3.32 ▲0.2136.80 ▲1.59
Add New Post /wp-admin/post-new.php5.75 ▲0.3165.52 ▼633.04
Media Library /wp-admin/upload.php3.12 ▲0.1123.78 ▼4.96

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Reorder Image Text Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,899 ▲29817.49 ▲1.446.80 ▼0.07115.97 ▲41.04
Dashboard /wp-admin3,156 ▲2608.09 ▲1.94138.25 ▲7.35164.72 ▼6.41
Posts /wp-admin/edit.php3,003 ▲2635.21 ▲1.9879.48 ▲14.46135.61 ▼1.00
Add New Post /wp-admin/post-new.php1,710 ▼2,02520.77 ▲0.76338.67 ▼126.10169.33 ▲6.59
Media Library /wp-admin/upload.php1,786 ▲345.60 ▲0.08109.72 ▼37.09188.14 ▼1.55

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/advanced-reorder-image-text-slider/advanced-reorder-image-text-slider.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.png), #2 (This screen shot description admin to screenshot-2.png)
You can take inspiration from this readme.txt

advanced-reorder-image-text-slider/advanced-reorder-image-text-slider.php Passed 13 tests

Analyzing the main PHP file in "Advanced Reorder Image Text Slider" version 1.0
87 characters long description:
This is Advanced Reorder Image Text Slider plugin with admin can have ordering feature.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected906 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 1.01MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/question_mark_for_tooltip.png0.77KB0.73KB▼ 5.06%
img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%
screenshot-1.png746.65KB285.97KB▼ 61.70%