84% pe-easy-slider

Code Review | PE Easy Slider

WordPress plugin PE Easy Slider scored 84% from 54 tests.

About plugin

  • Plugin page: pe-easy-slider
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.8
  • WordPress version: 6.3.1
  • First release: Aug 14, 2015
  • Latest release: Sep 2, 2021
  • Number of updates: 52
  • Update frequency: every 42.5 days
  • Top authors: pixelemu (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 19,231 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
Install script ran successfully

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

Analyzing server-side resources used by PE Easy Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.99 ▼2.00
Dashboard /wp-admin3.41 ▲0.1147.62 ▼1.94
Posts /wp-admin/edit.php3.47 ▲0.1149.42 ▲0.78
Add New Post /wp-admin/post-new.php6.00 ▲0.1195.39 ▲1.44
Media Library /wp-admin/upload.php3.34 ▲0.1135.33 ▼0.74

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_pe_recent_posts_horizontal
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for PE Easy Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.66 ▼0.7210.50 ▲8.9336.19 ▼13.66
Dashboard /wp-admin2,203 ▲125.81 ▼0.0898.00 ▼2.5239.59 ▼5.14
Posts /wp-admin/edit.php2,086 ▼62.05 ▲0.0839.48 ▲4.2436.76 ▲1.82
Add New Post /wp-admin/post-new.php1,534 ▼823.43 ▲5.27633.44 ▲30.5455.34 ▲0.55
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0193.91 ▼5.7540.79 ▼5.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_pe_recent_posts_horizontal
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pe-easy-slider/pe-easy-slider.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: easy slider, widget, thumbnails

pe-easy-slider/pe-easy-slider.php Passed 13 tests

"PE Easy Slider" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
34 characters long description:
Simple Horizontal Slider for Posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,162 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS3501173,105
JavaScript33557
PHP1215970

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity19.25
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/play-pause.png2.79KB0.13KB▼ 95.39%
images/navigation-left-right.png3.35KB0.49KB▼ 85.49%