10% yakkyofy

Code Review | Yakkyofy

WordPress plugin Yakkyofy scored10%from 54 tests.

About plugin

  • Plugin page: yakkyofy
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2020
  • Latest release: Oct 27, 2023
  • Number of updates: 13
  • Update frequency: every 85.1 days
  • Top authors: yakkyofy (100%)

Code review

54 tests

User reviews

62 reviews

Install metrics

100+ active /9,129 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
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/yakkyofy/functions/functions.php+13
    Constant YAKKYOFY_VERSION already defined

Server metrics [RAM: ▼1.78MB] [CPU: ▼49.02ms] Passed 4 tests

An overview of server-side resources used by Yakkyofy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.266.04 ▼31.91
Dashboard /wp-admin2.23 ▼1.088.88 ▼40.69
Posts /wp-admin/edit.php2.23 ▼1.136.96 ▼38.36
Add New Post /wp-admin/post-new.php2.23 ▼3.668.39 ▼85.11
Media Library /wp-admin/upload.php2.23 ▼1.007.60 ▼27.63

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Yakkyofy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.27 ▼0.331.61 ▼0.1840.70 ▼3.58
Dashboard /wp-admin2,205 ▲345.51 ▼0.1085.92 ▼17.3140.80 ▼2.50
Posts /wp-admin/edit.php2,117 ▲201.97 ▼0.0434.19 ▼2.1433.79 ▲3.57
Add New Post /wp-admin/post-new.php1,550 ▲2218.23 ▼4.79643.98 ▲1.9764.30 ▲3.90
Media Library /wp-admin/upload.php1,413 ▲134.18 ▼0.0396.71 ▲0.3240.58 ▼0.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/yakkyofy/functions/functions.php+13
    Constant YAKKYOFY_VERSION already defined
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/yakkyofy/vendor/micropackage/requirements/tests/bootstrap.php
    • > /wp-content/plugins/yakkyofy/vendor/wpdesk/wp-builder/tests/integration/bootstrap.php
    • > /wp-content/plugins/yakkyofy/yakkyofy.php
    • > /wp-content/plugins/yakkyofy/vendor/wpdesk/wp-notice/tests/integration/bootstrap.php
  • 51× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Yakkyofy\\Engine\\Base' not found in wp-content/plugins/yakkyofy/backend/Admin_Area.php:20
    • > PHP Warning
      require_once(wp-content/plugins/yakkyofy/vendor/wpdesk/wp-builder/tests/unit/../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/yakkyofy/vendor/wpdesk/wp-builder/tests/unit/bootstrap.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'WPDesk\\PluginBuilder\\Builder\\AbstractBuilder' not found in wp-content/plugins/yakkyofy/vendor/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php:16
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/yakkyofy/vendor/wpdesk/wp-notice/tests/unit/../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/yakkyofy/vendor/wpdesk/wp-notice/tests/unit/bootstrap.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Yakkyofy\\Engine\\Base' not found in wp-content/plugins/yakkyofy/integrations/Yakkyofy.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Yakkyofy\\Engine\\Base' not found in wp-content/plugins/yakkyofy/backend/Settings_Page.php:20
    • > PHP Fatal error
      require_once(): Failed opening required '/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/yakkyofy/vendor/wpdesk/wp-builder/tests/integration/bootstrap.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/yakkyofy/vendor/micropackage/requirements/tests/Checker/test-wp.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/yakkyofy/vendor/micropackage/requirements/tests/Checker/test-dochooks.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WPDesk\otice\otice' not found in wp-content/plugins/yakkyofy/vendor/wpdesk/wp-notice/src/WPDesk/Notice/PermanentDismissibleNotice.php:11

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: ecommerce, product sourcing, dropshipping, fulfillment, woocommerce

yakkyofy/yakkyofy.php 77% from 13 tests

Analyzing the main PHP file in "Yakkyofy" version 1.0.9
Please take the time to fix the following:
  • Git Repository: An alternative Git repository was detected
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected5,961 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PHP941,2392,5994,075
JSON800523
Markdown111650415
YAML7238253
Sass1301158
XML7243158
SVG300138
Bourne Shell12111120
JavaScript31074
PO File191146
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.94
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces20
Interfaces13
Traits3
Classes56
▷ Abstract classes47.14%
▷ Concrete classes5292.86%
▷ Final classes00.00%
Methods355
▷ Static methods287.89%
▷ Public methods33594.37%
▷ Protected methods82.25%
▷ Private methods123.38%
Functions32
▷ Named functions2268.75%
▷ Anonymous functions1031.25%
Constants49
▷ Global constants2653.06%
▷ Class constants2346.94%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin