78% wp-wdfy-integration-of-wodify

Code Review | WP WDFY Integration of Wodify

WordPress plugin WP WDFY Integration of Wodify scored78%from 54 tests.

About plugin

  • Plugin page: wp-wdfy-integrati...
  • Plugin version: 3.18
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 11, 2016
  • Latest release: Nov 11, 2023
  • Number of updates: 149
  • Update frequency: every 17.4 days
  • Top authors: osti47 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,860 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.64MB] [CPU: ▲3.16ms] 75% from 4 tests

A check of server-side resources used by WP WDFY Integration of Wodify
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 2,541.52ms on /wp-admin/options-general.php?page=wp-wdfy-integration-of-wodify)
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6442.48 ▲0.63
Dashboard /wp-admin3.94 ▲0.6451.49 ▲2.73
Posts /wp-admin/edit.php4.05 ▲0.6950.95 ▲4.39
Add New Post /wp-admin/post-new.php6.53 ▲0.6496.66 ▲9.65
Media Library /wp-admin/upload.php3.86 ▲0.6338.73 ▲4.87
Wodify Integration /wp-admin/options-general.php?page=wp-wdfy-integration-of-wodify3.882,541.52

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 11 new options
New WordPress options
widget_sos_wodify_classes_widget
widget_sos_wodify_wod_widget
wdfy_wodpublish_cron
widget_recent-posts
widget_recent-comments
can_compress_scripts
wdfy_classes_cron
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for WP WDFY Integration of Wodify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲1114.29 ▲0.021.76 ▼0.1539.01 ▼4.99
Dashboard /wp-admin2,201 ▲275.61 ▲0.0293.90 ▼12.4239.35 ▼6.59
Posts /wp-admin/edit.php2,103 ▲241.98 ▼0.0535.99 ▲0.1632.73 ▼1.81
Add New Post /wp-admin/post-new.php6,367 ▲4,84127.52 ▲6.23814.74 ▲145.8166.07 ▲18.44
Media Library /wp-admin/upload.php1,406 ▲64.17 ▼0.0998.39 ▲0.2640.64 ▼1.70
Wodify Integration /wp-admin/options-general.php?page=wp-wdfy-integration-of-wodify3,4502.1725.2129.98

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 11 options
    • db_upgraded
    • widget_sos_wodify_wod_widget
    • widget_recent-posts
    • wdfy_wodpublish_cron
    • widget_theysaidso_widget
    • widget_sos_wodify_classes_widget
    • theysaidso_admin_options
    • wdfy_classes_cron
    • can_compress_scripts
    • wodify_timezone
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wp-wdfy-integration-of-wodify
    • > Notice in wp-content/plugins/wp-wdfy-integration-of-wodify/soswodify.php+1163
    Undefined variable: wdfy_alexa_magicnumber

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
Almost there! Just fix the following items
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/widgets/wodify_wod_widget.php
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/shortcodes.php
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/soswodify.php
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/blocks.php
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/functions/eventlist.php
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/functions/diagnostic.php
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/functions/wodify_api.php
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/widgets/wodify_classes_widget.php
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/restapi.php
    • > /wp-content/plugins/wp-wdfy-integration-of-wodify/functions/functions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: wodify, crossfit

wp-wdfy-integration-of-wodify/soswodify.php 92% from 13 tests

The principal PHP file in "WP WDFY Integration of Wodify" v. 3.18 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-wdfy-integration-of-wodify.php" instead of "soswodify.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected5,920 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP106562063,737
PO File24704971,549
JavaScript510116343
CSS2311290
JSON1001

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 110)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity114.75
▷ Minimum class complexity54.00
▷ Maximum class complexity173.00
Average method complexity17.25
▷ Minimum method complexity1.00
▷ Maximum method complexity110.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods28
▷ Static methods1035.71%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions3076.92%
▷ Anonymous functions923.08%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.24MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/white_123x30.png4.59KB3.19KB▼ 30.58%
img/calendar.png1.05KB0.83KB▼ 20.95%
img/Wodify_Horizontal_color_256.png9.13KB4.10KB▼ 55.08%
img/white_206x50.png2.46KB2.29KB▼ 7.06%
img/black_206x50.png5.51KB2.97KB▼ 46.17%