89% web-stories-enhancer

Code Review | Web Stories Enhancer - Level Up Your Web Stories

WordPress plugin Web Stories Enhancer - Level Up Your Web Stories scored89%from 54 tests.

About plugin

  • Plugin page: web-stories-enhancer
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 30, 2022
  • Latest release: Nov 23, 2023
  • Number of updates: 20
  • Update frequency: every 25.6 days
  • Top authors: magazine3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,939 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.24ms] Passed 4 tests

An overview of server-side resources used by Web Stories Enhancer - Level Up Your Web Stories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0534.61 ▼5.41
Dashboard /wp-admin3.36 ▲0.0548.86 ▼3.40
Posts /wp-admin/edit.php3.47 ▲0.1144.84 ▼1.56
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.85 ▼10.57
Media Library /wp-admin/upload.php3.28 ▲0.0534.19 ▼0.05
Web Stories Enhancer /wp-admin/options-general.php?page=web-stories-enhancer3.3135.69

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

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

Browser metrics Passed 4 tests

Web Stories Enhancer - Level Up Your Web Stories: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.68 ▲0.411.63 ▼0.0338.01 ▼7.74
Dashboard /wp-admin2,217 ▲375.65 ▼0.0094.71 ▼4.1543.21 ▼4.10
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0340.35 ▼3.0234.29 ▼1.10
Add New Post /wp-admin/post-new.php1,529 ▲323.18 ▲0.22677.08 ▲29.9957.16 ▲3.09
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0495.15 ▼5.7143.02 ▼0.99
Web Stories Enhancer /wp-admin/options-general.php?page=web-stories-enhancer1,1873.1340.9880.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: stories, web stories, amp, storytelling, google

web-stories-enhancer/web_stories_enhancer.php 77% from 13 tests

The entry point to "Web Stories Enhancer - Level Up Your Web Stories" version 1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("web-stories-enhancer.php" instead of "web_stories_enhancer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin896 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP512027528
CSS1256190
JavaScript1291178

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.33
▷ Minimum class complexity11.00
▷ Maximum class complexity28.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1680.00%
▷ Protected methods00.00%
▷ Private methods420.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
4 PNG files occupy 0.47MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/grid.png372.72KB393.24KB0.00%
assets/images/logo.png61.41KB13.25KB▼ 78.43%
assets/images/box_carousel.png27.59KB26.57KB▼ 3.70%
assets/images/circle_carousel.png24.33KB24.63KB0.00%