90% wp-to-weibo

Code Review | WP-TO-WEIBO

WordPress plugin WP-TO-WEIBO scored90%from 54 tests.

About plugin

  • Plugin page: wp-to-weibo
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Feb 10, 2018
  • Latest release: Oct 22, 2019
  • Number of updates: 5
  • Update frequency: every 123.8 days
  • Top authors: hjyl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /956 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WP-TO-WEIBO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.63 ▼1.59
Dashboard /wp-admin3.31 ▲0.0145.53 ▼7.45
Posts /wp-admin/edit.php3.36 ▲0.0142.54 ▼4.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.69 ▼7.72
Media Library /wp-admin/upload.php3.24 ▲0.0136.05 ▲1.81
WP TO WEIBO /wp-admin/options-general.php?page=wp-to-weibo3.2030.44

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP-TO-WEIBO: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.56 ▼1.244.90 ▲3.0445.79 ▲1.32
Dashboard /wp-admin2,210 ▲225.83 ▲0.9797.65 ▼19.0541.62 ▼2.95
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0537.87 ▼2.8632.79 ▼2.32
Add New Post /wp-admin/post-new.php1,545 ▲3118.62 ▲0.99582.78 ▼65.7358.19 ▲7.12
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.1092.11 ▼0.5440.44 ▼3.23
WP TO WEIBO /wp-admin/options-general.php?page=wp-to-weibo9072.0525.9826.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: weibo, sina

wp-to-weibo/wp-to-weibo.php 92% from 13 tests

The entry point to "WP-TO-WEIBO" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected339 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42348253
PO File120639386

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin