89% blesk-companion

Code Review | Blesk Companion

WordPress plugin Blesk Companion scored89%from 54 tests.

About plugin

  • Plugin page: blesk-companion
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.6
  • WordPress version: 6.3.1
  • First release: Sep 19, 2016
  • Latest release: Sep 28, 2016
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: colorlibplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,071 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Blesk Companion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.32 ▼5.78
Dashboard /wp-admin3.32 ▼0.0248.42 ▼15.28
Posts /wp-admin/edit.php3.37 ▲0.0251.91 ▲3.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.56 ▼12.89
Media Library /wp-admin/upload.php3.25 ▲0.0236.33 ▼0.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_customrecentposts
db_upgraded
widget_recent-posts
widget_categoryposts

Browser metrics Passed 4 tests

An overview of browser requirements for Blesk Companion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.48 ▲0.111.69 ▼0.1644.54 ▼0.43
Dashboard /wp-admin2,221 ▲245.85 ▼0.03107.17 ▲1.7139.50 ▲2.52
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0539.95 ▼0.0835.13 ▼1.97
Add New Post /wp-admin/post-new.php1,550 ▲2423.33 ▲5.38596.46 ▼21.3461.06 ▲7.45
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.03100.74 ▼7.9942.50 ▼3.45

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_customrecentposts
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_categoryposts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === blesk-companion === )
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

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

"Blesk Companion" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin200 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP367110200

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity16.00
▷ Minimum class complexity11.00
▷ Maximum class complexity21.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
No PNG images were found in this plugin