84% advanced-reorder-image-text-slider

Code Review | Advanced Reorder Image Text Slider

WordPress plugin Advanced Reorder Image Text Slider scored 84% 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: 6.3.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 / 853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.17ms] Passed 4 tests

Server-side resources used by Advanced Reorder Image Text Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.89 ▼2.15
Dashboard /wp-admin3.45 ▲0.1548.37 ▼3.76
Posts /wp-admin/edit.php3.53 ▲0.1845.04 ▲0.81
Add New Post /wp-admin/post-new.php6.09 ▲0.2074.78 ▼20.53
Media Library /wp-admin/upload.php3.31 ▲0.0931.73 ▼2.24

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

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 /2,967 ▲23214.86 ▲0.302.96 ▲1.1847.01 ▼3.30
Dashboard /wp-admin2,372 ▲1846.54 ▲1.61136.55 ▲31.4941.75 ▼5.60
Posts /wp-admin/edit.php2,275 ▲1833.46 ▲1.4248.72 ▲11.7331.49 ▲0.85
Add New Post /wp-admin/post-new.php1,537 ▲317.69 ▼5.48637.16 ▼42.8337.12 ▼17.21
Media Library /wp-admin/upload.php1,414 ▲234.25 ▲0.0583.91 ▼17.0546.49 ▲0.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 take a closer look at the following
  • 1× PHP files output text 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 a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.png), #2 (This screen shot description admin to screenshot-2.png)
You can look at the official readme.txt

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

"Advanced Reorder Image Text Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin906 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG100288
CSS22212267
PHP12314221
JavaScript3936130

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.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 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 1.01MB with 0.30MB 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%
screenshot-1.png746.65KB285.97KB▼ 61.70%
img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%
screenshot-2.png259.05KB91.29KB▼ 64.76%