83% zmooz-stories

Code Review | ZMOOZ Web Stories

WordPress plugin ZMOOZ Web Stories scored 83% from 54 tests.

About plugin

  • Plugin page: zmooz-stories
  • Plugin version: 0.9.8.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 0.9.8.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2022
  • Latest release: May 23, 2023
  • Number of updates: 106
  • Update frequency: every 2.7 days
  • Top authors: zwstories1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,458 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.32MB] [CPU: ▼2.18ms] 75% from 4 tests

This is a short check of server-side resources used by ZMOOZ Web Stories
Please fix the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 675.35ms on /wp-admin/edit.php?post_type=stories&page=zmooz-stories-dashboard)
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3138.72 ▼2.89
Dashboard /wp-admin3.61 ▲0.3148.43 ▼6.68
Posts /wp-admin/edit.php3.73 ▲0.3750.24 ▼1.80
Add New Post /wp-admin/post-new.php6.32 ▲0.4390.58 ▲2.67
Media Library /wp-admin/upload.php3.53 ▲0.3043.60 ▲10.06
Zmooz /wp-admin/options-general.php?page=zmooz_custom_plugin_settings_group3.5034.71
Dashboard /wp-admin/edit.php?post_type=stories&page=zmooz-stories-dashboard3.55675.35
Story categories /wp-admin/edit-tags.php?taxonomy=storycategory&post_type=stories3.5334.17
All stories /wp-admin/edit.php?post_type=stories3.5838.56

Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • You have illegally modified 3 files (14.44KB) outside of "wp-content/plugins/zmooz-stories/" and "wp-content/uploads/"
    • (new file) wp-content/themes/twentytwentyone/single-stories.php
    • (new file) wp-content/themes/twentytwentyone/zmooz_stories_style.css
    • (new file) wp-content/themes/twentytwentyone/archive-stories.php
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for ZMOOZ Web Stories
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12313.66 ▼0.941.94 ▲0.2840.67 ▲3.53
Dashboard /wp-admin2,234 ▲465.86 ▲1.0299.45 ▼1.8475.80 ▲32.72
Posts /wp-admin/edit.php2,120 ▲312.01 ▼0.0135.51 ▼4.6131.38 ▼4.75
Add New Post /wp-admin/post-new.php1,694 ▲16022.38 ▼0.87668.10 ▼9.4541.99 ▼14.87
Media Library /wp-admin/upload.php1,419 ▲344.18 ▼0.0194.49 ▼5.5775.63 ▲32.04
Zmooz /wp-admin/options-general.php?page=zmooz_custom_plugin_settings_group8352.0124.5225.72
Dashboard /wp-admin/edit.php?post_type=stories&page=zmooz-stories-dashboard9572.0223.5532.24
Story categories /wp-admin/edit-tags.php?taxonomy=storycategory&post_type=stories1,2932.1424.5126.68
All stories /wp-admin/edit.php?post_type=stories1,1742.0438.2333.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/zmooz-stories/admin/auth.php:2
    • > PHP Notice
      Undefined variable: storiesList in wp-content/plugins/zmooz-stories/admin/zmooz_wp_plugin_admin.php on line 99
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/zmooz-stories/zmooz_wp_plugin.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zmooz-stories/admin/zmooz_wp_plugin_admin.php:109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: 0986, 0981, 0985, 0982, 098...

zmooz-stories/zmooz_wp_plugin.php 77% from 13 tests

Analyzing the main PHP file in "ZMOOZ Web Stories" version 0.9.8.7
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("zmooz-stories.php" instead of "zmooz_wp_plugin.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: A good plugin description is longer than 10 characters (currently 6 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,151 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44351872,151

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity82.50
▷ Minimum class complexity50.00
▷ Maximum class complexity115.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
41 PNG files occupy 0.62MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/stickers/live_layer_black_montserrat_extra_bold_straight.png3.86KB3.81KB▼ 1.34%
images/stickers/new_post_apice_straight.png4.79KB5.09KB0.00%
admin/assets/favvertical.png6.84KB1.37KB▼ 79.99%
images/stickers/green_star.png1.44KB0.40KB▼ 72.46%
images/stickers/live_red_dot_montserrat_extra_bold_straight.png3.37KB3.28KB▼ 2.84%