67% prosolution-wp-client

Code Review | ProSolution WP Client

WordPress plugin ProSolution WP Client scored67%from 54 tests.

About plugin

  • Plugin page: prosolution-wp-cl...
  • Plugin version: 1.8.13
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.5
  • WordPress version: 6.3.1
  • First release: Oct 3, 2018
  • Latest release: Oct 10, 2023
  • Number of updates: 78
  • Update frequency: every 23.6 days
  • Top authors: prosolution (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,076 total downloads

Benchmarks

Plugin footprint 65% 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.00MB] [CPU: ▼0.93ms] Passed 4 tests

An overview of server-side resources used by ProSolution WP Client
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.39 ▼1.32
Dashboard /wp-admin3.31 ▲0.0046.46 ▼3.74
Posts /wp-admin/edit.php3.36 ▲0.0049.43 ▲1.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.02 ▲2.08
Media Library /wp-admin/upload.php3.23 ▲0.0035.39 ▲0.11

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

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

Browser metrics Passed 4 tests

ProSolution WP Client: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.031.62 ▼0.1240.23 ▲1.47
Dashboard /wp-admin2,198 ▲265.63 ▼0.0490.90 ▼9.8338.14 ▼4.33
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0139.19 ▲4.0334.97 ▼0.25
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.95657.38 ▼16.4154.06 ▼16.58
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0593.28 ▼4.7443.54 ▲0.27

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
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/prosolution-wp-client/includes/class-setting.php+1282
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/prosolution-wp-client/public/class-prosolwpclient-public.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/prosolution-wp-client/admin/templates/admin-overview.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Frontend job search window), #2 (Frontend job search result), #10 (Frontend job apply form - Side Dishes Data Step5), #11 (Frontend job apply form - Side Dishes Data Step5(2)), #12 (Backend - All table list with sync status), #13 (Backend - Example country list table with country listing), #14 (Backend Setting - Api Config), #15 (Backend Setting - Frontend Setting), #16 (Backend Setting - Tools)
The official readme.txt is a good inspiration

prosolution-wp-client/prosolwpclient.php 85% from 13 tests

"ProSolution WP Client" version 1.8.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("prosolution-wp-client.php" instead of "prosolwpclient.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected43,906 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code
PHP694,6846,72519,865
CSS101,75820411,723
JavaScript291,7261,2929,882
PO File21,0481,4562,148
SVG100288

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 255)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity46.00
▷ Minimum class complexity1.00
▷ Maximum class complexity406.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity255.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes44
▷ Abstract classes00.00%
▷ Concrete classes44100.00%
▷ Final classes00.00%
Methods708
▷ Static methods324.52%
▷ Public methods64490.96%
▷ Protected methods588.19%
▷ Private methods60.85%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
11 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/css/chosen-sprite.png0.53KB0.88KB0.00%
public/css/images/ui-icons_777620_256x240.png3.19KB3.49KB0.00%
public/css/images/ui-bg_flat_0_aaaaaa_40x100.png0.08KB0.08KB0.00%
public/css/images/ui-icons_cc0000_256x240.png3.19KB3.49KB0.00%
public/css/images/ui-icons_555555_256x240.png3.20KB3.50KB0.00%