89% easy-listings-slider

Code Review | Easy Listings Slider

WordPress plugin Easy Listings Slider scored89%from 54 tests.

About plugin

  • Plugin page: easy-listings-slider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Jan 21, 2017
  • Number of updates: 3
  • Update frequency: every 167.4 days
  • Top authors: c0dezer0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▲1.29ms] Passed 4 tests

A check of server-side resources used by Easy Listings Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.58 ▲2.52
Dashboard /wp-admin3.35 ▲0.0444.68 ▼5.62
Posts /wp-admin/edit.php3.46 ▲0.1051.16 ▲4.74
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.15 ▲6.02
Media Library /wp-admin/upload.php3.27 ▲0.0437.83 ▲3.50

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Listings Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.32 ▼1.431.80 ▲0.1444.09 ▲0.13
Dashboard /wp-admin2,216 ▲314.81 ▼1.08109.88 ▲7.1839.50 ▼0.50
Posts /wp-admin/edit.php2,098 ▲92.02 ▲0.0039.42 ▲4.6134.78 ▼2.91
Add New Post /wp-admin/post-new.php1,540 ▲2623.11 ▲5.67649.28 ▼51.2355.02 ▲2.14
Media Library /wp-admin/upload.php1,386 ▲14.23 ▲0.0896.84 ▼8.4941.26 ▼3.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected 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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (37 tag instead of maximum 10)
Please take inspiration from this readme.txt

easy-listings-slider/easy-listings-slider.php 92% from 13 tests

Analyzing the main PHP file in "Easy Listings Slider" version 1.0.1
Please take the time to fix the following:
  • 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 not allowed as they can serve as attack vectors
No dangerous file extensions were detected25,209 lines of code in 105 files:
LanguageFilesBlank linesComment linesLines of code
JSON10012,822
JavaScript201,5621,3666,162
PHP606972,5064,052
CSS221481292,075
SVG10095
Markdown1203

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity9.22
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes41
▷ Abstract classes24.88%
▷ Concrete classes3995.12%
▷ Final classes00.00%
Methods210
▷ Static methods41.90%
▷ Public methods18889.52%
▷ Protected methods31.43%
▷ Private methods199.05%
Functions3
▷ Named functions3100.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
17 PNG files occupy 0.82MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/jssor/a20.png5.79KB3.60KB▼ 37.83%
admin/images/welcome/new-slider.png53.65KB18.95KB▼ 64.67%
admin/images/welcome/slides.png97.08KB27.97KB▼ 71.18%
admin/images/help.png0.30KB0.32KB0.00%
admin/images/welcome/captions-preview.png258.09KB144.29KB▼ 44.09%