83% illdy-companion

Code Review | Illdy Companion

WordPress plugin Illdy Companion scored83%from 54 tests.

About plugin

  • Plugin page: illdy-companion
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 6.3.1
  • First release: Sep 6, 2016
  • Latest release: Jul 28, 2021
  • Number of updates: 27
  • Update frequency: every 66.3 days
  • Top authors: colorlibplugins (51.85%)silkalns (25.93%)giucu91 (18.52%)machothemes (14.81%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /312,933 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.13ms] Passed 4 tests

Server-side resources used by Illdy Companion
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.70 ▼6.16
Dashboard /wp-admin3.93 ▲0.6258.96 ▲12.09
Posts /wp-admin/edit.php3.38 ▲0.0348.61 ▼3.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.27 ▼5.46
Media Library /wp-admin/upload.php3.25 ▲0.0337.21 ▲2.60

Server storage [IO: ▲1.25MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Illdy Companion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲20013.25 ▼1.131.59 ▼0.3238.90 ▼12.68
Dashboard /wp-admin2,338 ▲1505.87 ▼0.04103.88 ▼11.7045.13 ▲1.57
Posts /wp-admin/edit.php2,100 ▲112.05 ▲0.0039.13 ▼0.3937.17 ▼0.58
Add New Post /wp-admin/post-new.php1,544 ▲223.41 ▲5.26646.09 ▲11.4257.20 ▲7.41
Media Library /wp-admin/upload.php1,399 ▲114.22 ▲0.0592.98 ▼9.4441.20 ▲1.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/illdy-companion/widgets/class-illdy-widget-skill.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/illdy-companion/inc/class-illdy-companion-import-data.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/illdy-companion/widgets/class-illdy-widget-project.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/illdy-companion/widgets/class-illdy-widget-service.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/illdy-companion/widgets/class-illdy-widget-recent-posts.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/illdy-companion/widgets/class-illdy-widget-testimonial.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/illdy-companion/illdy-main.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/illdy-companion/widgets/class-illdy-widget-counter.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/illdy-companion/widgets/class-illdy-widget-person.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/illdy-companion/widgets/class-illdy-widget-parallax.php:3

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

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === illdy-companion === )
  • Screenshots: Screenshot #1 (Screenshot of the Illdy companion plugin's demo content import option which you can find under Appearance - About Illdy in your WordPress dashboard.) image not found
The official readme.txt is a good inspiration

illdy-companion/illdy-companion.php 92% from 13 tests

The primary PHP file in "Illdy Companion" version 2.1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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 detected5,961 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
CSS676492,699
PHP133423652,154
SVG200943
JavaScript53432165

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity12.64
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods55
▷ Static methods610.91%
▷ Public methods5498.18%
▷ Protected methods00.00%
▷ Private methods11.82%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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