68% wbto

Code Review | 微博通同步新版

WordPress plugin 微博通同步新版 scored68%from 54 tests.

About plugin

  • Plugin page: wbto
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2013
  • Latest release: Mar 10, 2013
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: xiaohudie (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,069 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.94MB] [CPU: ▼36.72ms] Passed 4 tests

An overview of server-side resources used by 微博通同步新版
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.88 ▼8.72
Dashboard /wp-admin3.01 ▼0.3027.53 ▼26.31
Posts /wp-admin/edit.php3.01 ▼0.3526.02 ▼22.31
Add New Post /wp-admin/post-new.php3.01 ▼2.8823.45 ▼81.63
Media Library /wp-admin/upload.php3.01 ▼0.2221.17 ▼16.63
微博通同步 /wp-admin/options-general.php?page=wbto/wbto.php3.0124.92

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by 微博通同步新版
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4714.35 ▼0.161.86 ▼0.0941.96 ▲0.90
Dashboard /wp-admin2,202 ▲255.66 ▼0.0189.13 ▼2.6545.02 ▼0.73
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.0137.61 ▲0.3735.21 ▼0.82
Add New Post /wp-admin/post-new.php1,529 ▼623.27 ▲5.11603.26 ▼76.6353.74 ▼19.14
Media Library /wp-admin/upload.php1,404 ▲74.23 ▲0.03102.78 ▼15.2752.65 ▲4.88
微博通同步 /wp-admin/options-general.php?page=wbto/wbto.php7932.0127.6159.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wbto/wbto.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wbto/wbto.php
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wbto/wbto.php:88

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wbto === )
Please take inspiration from this readme.txt

wbto/wbto.php Passed 13 tests

The main PHP file in "微博通同步新版" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
自动把你的博客文章同步到微博通,支持标题+内容截断+抓取图像+更新不同步。

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
No dangerous file extensions were detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11980

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin