89% wp-duoshuo-gravatar

Code Review | WP-DuoShuo-Gravatar

WordPress plugin WP-DuoShuo-Gravatar scored89%from 54 tests.

About plugin

  • Plugin page: wp-duoshuo-gravatar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: May 9, 2015
  • Latest release: May 9, 2015
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: shines77 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /15,760 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.50ms] Passed 4 tests

Analyzing server-side resources used by WP-DuoShuo-Gravatar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.78 ▼3.76
Dashboard /wp-admin3.31 ▼0.0347.96 ▼20.81
Posts /wp-admin/edit.php3.36 ▲0.0153.77 ▲4.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.46 ▼17.43
Media Library /wp-admin/upload.php3.23 ▲0.0133.77 ▼3.98

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP-DuoShuo-Gravatar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.231.92 ▼0.1941.68 ▼1.83
Dashboard /wp-admin2,195 ▲245.50 ▼0.0987.33 ▼18.0038.48 ▼4.03
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0439.47 ▲2.1434.56 ▼0.71
Add New Post /wp-admin/post-new.php1,526 ▼220.98 ▼2.13673.16 ▲8.5847.50 ▼4.03
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.02100.12 ▼6.6740.90 ▼6.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Enable DuoShuo Gravatar URL. 启用 DuoShuo 头像URL。) image not found
You can look at the official readme.txt

wp-duoshuo-gravatar/wp-duoshuo-gravatar.php 92% from 13 tests

The main PHP script in "WP-DuoShuo-Gravatar" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 431 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
Everything looks great! No dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12128

PHP code Passed 2 tests

A short review of 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.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png33.20KB13.57KB▼ 59.11%