83% copy-text-to-wechat

Code Review | 自媒体平台快速发布插件

WordPress plugin 自媒体平台快速发布插件 scored83%from 54 tests.

About plugin

  • Plugin page: copy-text-to-wechat
  • Plugin version: 0.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-5.9
  • WordPress version: 6.3.1
  • First release: Apr 7, 2022
  • Latest release: Apr 14, 2022
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: bestony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,975 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by 自媒体平台快速发布插件
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.74 ▼3.88
Dashboard /wp-admin3.33 ▼0.0267.54 ▲1.91
Posts /wp-admin/edit.php3.38 ▲0.0250.23 ▲2.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.52 ▼16.82
Media Library /wp-admin/upload.php3.25 ▲0.0236.10 ▲1.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for 自媒体平台快速发布插件
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.241.61 ▲0.0640.03 ▲0.29
Dashboard /wp-admin2,209 ▲215.88 ▲1.01105.34 ▲3.0640.59 ▼0.63
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.0138.58 ▲3.9334.62 ▲0.70
Add New Post /wp-admin/post-new.php1,537 ▲923.16 ▲4.82645.62 ▲26.4456.33 ▼12.13
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0495.58 ▼3.3843.30 ▼0.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copy-text-to-wechat/copytowechat.php:58

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: wechat

copy-text-to-wechat/copytowechat.php 69% from 13 tests

Analyzing the main PHP file in "自媒体平台快速发布插件" version 0.0.4
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("copy-text-to-wechat.php" instead of "copytowechat.php")
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin162 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP171888
CSS10070
JavaScript2064

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin