84% yuma-companion

Code Review | Yuma Companion

WordPress plugin Yuma Companion scored84%from 54 tests.

About plugin

  • Plugin page: yuma-companion
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2022
  • Latest release: Feb 26, 2023
  • Number of updates: 5
  • Update frequency: every 34.4 days
  • Top authors: sharkthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /4,152 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Yuma Companion
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.95 ▼2.55
Dashboard /wp-admin3.32 ▼0.0244.29 ▼18.29
Posts /wp-admin/edit.php3.37 ▲0.0244.20 ▼0.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.82 ▼5.59
Media Library /wp-admin/upload.php3.24 ▲0.0234.74 ▲0.77

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Yuma Companion
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.76 ▼0.601.83 ▲0.0543.95 ▲1.57
Dashboard /wp-admin2,209 ▲205.81 ▲0.8197.63 ▼24.5937.95 ▼8.95
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0336.98 ▼3.0631.36 ▼3.35
Add New Post /wp-admin/post-new.php1,533 ▲1923.11 ▲5.43621.62 ▼77.6446.61 ▼6.53
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.0197.89 ▼15.0640.58 ▼8.90

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'ST_Yuma_Companion' not found in wp-content/plugins/yuma-companion/include/demo-import.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/yuma-companion/include/welcome.php:95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/yuma-companion/include/options.php:31

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: companion, yuma

yuma-companion/yuma-companion.php Passed 13 tests

The main file in "Yuma Companion" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
Add a supportive features, demos and options for Yuma Free and Pro Themes.

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
Everything looks great! No dangerous files found in this plugin702 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP496166621
CSS21156
JavaScript27125

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.23
Average class complexity9.33
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods19
▷ Static methods15.26%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/yuma-logo.png2.22KB2.08KB▼ 6.30%