83% envoke-supersized

Code Review | Envoke Supersized

WordPress plugin Envoke Supersized scored83%from 54 tests.

About plugin

  • Plugin page: envoke-supersized
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.8
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Apr 13, 2016
  • Number of updates: 41
  • Update frequency: every 37.0 days
  • Top authors: cmmarslender (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /9,666 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.06MB] [CPU: ▼12.76ms] Passed 4 tests

This is a short check of server-side resources used by Envoke Supersized
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0844.09 ▼5.87
Dashboard /wp-admin3.37 ▲0.0252.58 ▼18.72
Posts /wp-admin/edit.php3.42 ▲0.0648.39 ▼8.21
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.95 ▼18.25
Media Library /wp-admin/upload.php3.29 ▲0.0636.88 ▼0.27
Categories /wp-admin/edit-tags.php?taxonomy=slide-category&post_type=slides3.3739.31
Settings /wp-admin/edit.php?post_type=slides&page=enss-settings3.2633.26
Add New /wp-admin/post-new.php?post_type=slides3.4153.49
All Slides /wp-admin/edit.php?post_type=slides3.3341.59

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Envoke Supersized
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.25 ▼0.411.78 ▼0.2443.20 ▼1.58
Dashboard /wp-admin2,230 ▲535.61 ▼0.0584.08 ▼12.1942.50 ▼3.13
Posts /wp-admin/edit.php2,135 ▲352.04 ▲0.0838.42 ▼0.2434.58 ▼0.79
Add New Post /wp-admin/post-new.php6,344 ▲4,81818.95 ▼3.98923.35 ▲224.1355.65 ▼5.24
Media Library /wp-admin/upload.php1,438 ▲474.20 ▲0.0499.51 ▼4.1245.77 ▼4.58
Categories /wp-admin/edit-tags.php?taxonomy=slide-category&post_type=slides1,3092.1225.1730.67
Settings /wp-admin/edit.php?post_type=slides&page=enss-settings1,4541.8225.7825.45
Add New /wp-admin/post-new.php?post_type=slides2,2937.72167.2164.21
All Slides /wp-admin/edit.php?post_type=slides1,1071.9330.6231.21

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envoke-supersized/includes/class-enss-settings.php:128
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envoke-supersized/includes/class-enss-slide.php:82
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envoke-supersized/includes/class-enss-front-end.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/envoke-supersized/envoke_supersized.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envoke-supersized/includes/class-enss-back-compat.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envoke-supersized/includes/class-enss-per-post-override.php:92

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can look at the official readme.txt

envoke-supersized/envoke_supersized.php 85% from 13 tests

The main file in "Envoke Supersized" v. 2.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("envoke-supersized.php" instead of "envoke_supersized.php")

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
There were no executable files found in this plugin3,303 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript106194151,729
PHP6165672992
CSS46141277
PO File17678174
Sass4341131

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity19.80
▷ Minimum class complexity8.00
▷ Maximum class complexity33.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods53
▷ Static methods59.43%
▷ Public methods5196.23%
▷ Protected methods23.77%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
19 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/supersized/nav-dot.png1.86KB0.98KB▼ 47.40%
images/supersized/bg-hover.png0.94KB0.24KB▼ 74.79%
images/overlay-grid.png2.74KB0.10KB▼ 96.37%
images/supersized/thumb-forward.png2.07KB1.30KB▼ 36.92%
images/overlay-vlines.png2.74KB0.10KB▼ 96.44%