84% momoyoga-integration

Code Review | Yoga Schedule Momoyoga

WordPress plugin Yoga Schedule Momoyoga scored 84% from 54 tests.

About plugin

  • Plugin page: momoyoga-integration
  • Plugin version: 2.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2018
  • Latest release: Aug 23, 2023
  • Number of updates: 54
  • Update frequency: every 35.2 days
  • Top authors: nilsmomo (55.56%)momostefan (46.3%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 15,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.65ms] Passed 4 tests

Analyzing server-side resources used by Yoga Schedule Momoyoga
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.16 ▼7.50
Dashboard /wp-admin3.32 ▲0.0245.23 ▼8.98
Posts /wp-admin/edit.php3.37 ▲0.0146.75 ▲1.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.85 ▼13.88
Media Library /wp-admin/upload.php3.24 ▲0.0133.57 ▼4.24

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Yoga Schedule Momoyoga
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲18314.19 ▼0.186.57 ▲4.8436.49 ▼3.42
Dashboard /wp-admin2,209 ▲245.23 ▲0.3597.85 ▼4.0036.40 ▼7.70
Posts /wp-admin/edit.php2,095 ▲92.53 ▲0.4835.18 ▼0.6832.35 ▼1.56
Add New Post /wp-admin/post-new.php6,602 ▲5,06022.41 ▲4.28901.70 ▲268.5041.33 ▼6.63
Media Library /wp-admin/upload.php1,394 ▲124.61 ▲0.3895.26 ▲0.1740.06 ▼3.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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 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 fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/momoyoga-integration/momoyoga-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/momoyoga-integration/momoyoga-schedule.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

momoyoga-integration/momoyoga-schedule.php 92% from 13 tests

The main PHP script in "Yoga Schedule Momoyoga" version 2.7.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("momoyoga-integration.php" instead of "momoyoga-schedule.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
No dangerous file extensions were detected740 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS58932445
JavaScript4285171
PHP32822123
SVG1001

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.20
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin