78% ework-flexslider

Code Review | Ework Slider

WordPress plugin Ework Slider scored 78% from 54 tests.

About plugin

  • Plugin page: ework-flexslider
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.4
  • WordPress version: 6.3.1
  • First release: Sep 2, 2013
  • Latest release: Sep 2, 2013
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: Ework (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 779 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.67MB] [CPU: ▼16.87ms] Passed 4 tests

This is a short check of server-side resources used by Ework Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.75 ▲5.92
Dashboard /wp-admin3.33 ▲0.0346.56 ▼5.56
Posts /wp-admin/edit.php3.38 ▲0.0347.26 ▲1.09
Add New Post /wp-admin/post-new.php3.12 ▼2.7735.41 ▼61.83
Media Library /wp-admin/upload.php3.26 ▲0.0333.26 ▼1.18
Add New /wp-admin/post-new.php?post_type=ework_slider3.1132.93
Ework Sliders /wp-admin/edit.php?post_type=ework_slider3.3033.28

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ework Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲22814.05 ▼0.346.80 ▲4.9747.05 ▲2.13
Dashboard /wp-admin2,249 ▲585.86 ▼0.0499.20 ▼4.7335.75 ▼4.49
Posts /wp-admin/edit.php2,132 ▲432.01 ▼0.0435.46 ▲0.0834.17 ▲0.22
Add New Post /wp-admin/post-new.php1,550 ▲3617.41 ▼0.06662.08 ▼10.8852.56 ▲1.37
Media Library /wp-admin/upload.php1,425 ▲434.25 ▼0.0397.35 ▼3.6041.71 ▼0.74
Add New /wp-admin/post-new.php?post_type=ework_slider1,5922.5349.6051.88
Ework Sliders /wp-admin/edit.php?post_type=ework_slider1,1131.9531.9629.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=ework_slider
    • > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+222
    Undefined index: ework_slider_box_nonce
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ework_slider
    • > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+178
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ework_slider
    • > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+186
    Undefined offset: 1
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ework_slider
    • > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+194
    Undefined offset: 2
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ework_slider
    • > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+202
    Undefined offset: 3
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ework_slider
    • > Notice in wp-content/plugins/ework-flexslider/ework_slider.php+210
    Undefined offset: 4

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ework-flexslider/ework_slider.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === ework-flexslider === )
The official readme.txt might help

ework-flexslider/ework_slider.php 92% from 13 tests

The principal PHP file in "Ework Slider" v. 0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ework-flexslider.php" instead of "ework_slider.php")

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
Good job! No executable or dangerous file extensions detected2,726 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
SVG4001,252
JavaScript61472131,073
PHP14624249
HTML354084
CSS1132668

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/bg_play_pause.png1.51KB0.52KB▼ 65.52%