10% 5usujian-super-serv

Code Review | QQ旺旺Skype微信电话二维码客服WordPress插件 5usujian super serv

WordPress plugin QQ旺旺Skype微信电话二维码客服WordPress插件 5usujian super serv scored 10% from 54 tests.

About plugin

  • Plugin page: 5usujian-super-serv
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 21, 2019
  • Latest release: May 25, 2023
  • Number of updates: 16
  • Update frequency: every 89.7 days
  • Top authors: weitamingting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 8,068 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/5usujian-super-serv/5usujian-super-serv.php+38
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.14ms] Passed 4 tests

A check of server-side resources used by QQ旺旺Skype微信电话二维码客服WordPress插件 5usujian super serv
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0843.09 ▼0.22
Dashboard /wp-admin3.40 ▲0.0949.27 ▼5.78
Posts /wp-admin/edit.php3.51 ▲0.1549.40 ▼1.93
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.44 ▼12.62
Media Library /wp-admin/upload.php3.32 ▲0.0937.13 ▲4.69

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
wysj_serv_options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for QQ旺旺Skype微信电话二维码客服WordPress插件 5usujian super serv
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19513.66 ▼0.695.96 ▲3.6650.28 ▲1.91
Dashboard /wp-admin2,235 ▲445.87 ▲1.0095.90 ▼10.1742.66 ▼1.87
Posts /wp-admin/edit.php2,118 ▲292.10 ▲0.0934.10 ▼7.8337.54 ▼0.32
Add New Post /wp-admin/post-new.php1,540 ▲1023.07 ▲4.81621.24 ▲16.4164.07 ▲15.64
Media Library /wp-admin/upload.php1,417 ▲294.26 ▲0.0395.50 ▼36.2243.96 ▼8.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • wysj_serv_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

5usujian-super-serv/5usujian-super-serv.php 92% from 13 tests

The main file in "QQ旺旺Skype微信电话二维码客服WordPress插件 5usujian super serv" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

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
There were no executable files found in this plugin2,424 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP839311,312
CSS523211679
SVG13913215
JavaScript41317185
PO File18933

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/images/wysj-logo.png5.71KB2.50KB▼ 56.13%
asset/css/jquery.minicolors.png67.02KB34.31KB▼ 48.80%