83% elastic-slide

Code Review | Elastic Slide

WordPress plugin Elastic Slide scored83%from 54 tests.

About plugin

  • Plugin page: elastic-slide
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2013
  • Latest release: Oct 6, 2013
  • Number of updates: 8
  • Update frequency: every 26.0 days
  • Top authors: foo123 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /5,378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Elastic Slide
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.85 ▼2.30
Dashboard /wp-admin3.33 ▼0.0244.97 ▼21.06
Posts /wp-admin/edit.php3.38 ▲0.0250.07 ▲4.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.47 ▼8.80
Media Library /wp-admin/upload.php3.25 ▲0.0236.51 ▲5.75

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Elastic Slide
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.151.70 ▼0.2943.87 ▼1.68
Dashboard /wp-admin2,206 ▲154.83 ▼0.06110.55 ▼1.8740.24 ▼5.10
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0240.19 ▲3.2134.47 ▲0.48
Add New Post /wp-admin/post-new.php1,533 ▲1223.15 ▲0.01656.07 ▲41.9951.46 ▼2.82
Media Library /wp-admin/upload.php1,382 ▼34.21 ▲0.0399.35 ▼2.8846.41 ▲2.30

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/elastic-slide/plugin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png Slider at full width), #2 (screenshot-2.png Responsive Slider in handheld mode)
The official readme.txt might help

elastic-slide/plugin.php 85% from 13 tests

The main file in "Elastic Slide" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("elastic-slide.php" instead of "plugin.php")
  • Description: The description should be shorter than 140 characters (currently 410 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,563 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,1477662,669
CSS48220427
HTML43324309
PHP12649158

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.40MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/nav.png0.78KB0.46KB▼ 40.28%
assets/images/black_denim.png9.78KB10.98KB0.00%
assets/images/carousel-arrow-left.png6.78KB2.64KB▼ 61.12%
screenshot-1.png308.89KB95.84KB▼ 68.97%
assets/images/monotone_arrow_right.png0.43KB0.25KB▼ 40.64%