10% mythos360-online-store-widget

Code Review | Mythos360 Online Store

WordPress plugin Mythos360 Online Store scored10%from 54 tests.

About plugin

  • Plugin page: mythos360-online-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2014
  • Latest release: Feb 21, 2014
  • Number of updates: 5
  • Update frequency: every 9.6 days
  • Top authors: dkatzman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,181 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/mythos360-online-store-widget/mythos360-online-store.php+90
    Methods with the same name as their class will not be constructors in a future version of PHP; iframe_settings has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼52.03ms] Passed 4 tests

Analyzing server-side resources used by Mythos360 Online Store
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.345.02 ▼35.42
Dashboard /wp-admin2.15 ▼1.167.18 ▼44.55
Posts /wp-admin/edit.php2.15 ▼1.217.53 ▼45.10
Add New Post /wp-admin/post-new.php2.15 ▼3.747.42 ▼83.03
Media Library /wp-admin/upload.php2.15 ▼1.085.95 ▼29.62
My Mythos360 Online Store /wp-admin/options-general.php?page=iframe_settings_display2.155.97

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Mythos360 Online Store
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.20 ▼1.192.04 ▲0.1342.78 ▲0.54
Dashboard /wp-admin2,207 ▲284.83 ▼1.02109.79 ▲9.2540.58 ▼7.05
Posts /wp-admin/edit.php2,093 ▲72.00 ▼0.1541.51 ▲0.3834.88 ▼3.64
Add New Post /wp-admin/post-new.php1,536 ▲2223.18 ▲5.56681.63 ▲0.3668.19 ▲19.52
Media Library /wp-admin/upload.php1,392 ▲74.17 ▼0.0595.60 ▼8.9443.38 ▼1.74
My Mythos360 Online Store /wp-admin/options-general.php?page=iframe_settings_display9082.1523.0131.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/mythos360-online-store-widget/mythos360-online-store.php+90
    Methods with the same name as their class will not be constructors in a future version of PHP; iframe_settings has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_iframewidget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=iframe_settings_display
    • > Deprecated in wp-content/plugins/mythos360-online-store-widget/mythos360-online-store.php+90
    Methods with the same name as their class will not be constructors in a future version of PHP; iframe_settings has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=iframe_settings_display
    • > Deprecated in wp-content/plugins/mythos360-online-store-widget/mythos360-widget.php+14
    Function create_function() is deprecated
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=iframe_settings_display
    • > Notice in wp-content/plugins/mythos360-online-store-widget/mythos360-online-store.php+134
    Trying to access array offset on value of type bool

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mythos360-online-store-widget/mythos360-widget.php:14

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

mythos360-online-store-widget/mythos360-widget.php 92% from 13 tests

The main file in "Mythos360 Online Store" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mythos360-online-store-widget.php" instead of "mythos360-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected303 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23223303

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected