72% baiduseo

Code Review | 百度站长SEO合集(支持百度/神马/Bing/头条推送)

WordPress plugin 百度站长SEO合集(支持百度/神马/Bing/头条推送) scored72%from 54 tests.

About plugin

  • Plugin page: baiduseo
  • Plugin version: 1.8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2020
  • Latest release: Sep 26, 2023
  • Number of updates: 326
  • Update frequency: every 3.9 days
  • Top authors: kelerkgibo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /47,779 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▲5.20ms] Passed 4 tests

An overview of server-side resources used by 百度站长SEO合集(支持百度/神马/Bing/头条推送)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.21 ▲0.22
Dashboard /wp-admin3.45 ▲0.1164.42 ▼0.03
Posts /wp-admin/edit.php3.51 ▲0.1670.32 ▲22.70
Add New Post /wp-admin/post-new.php6.03 ▲0.15107.55 ▼2.11
Media Library /wp-admin/upload.php3.38 ▲0.1560.79 ▲23.90

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 133 new files
Database: 10 new tables, 6 new options
New tables
wp_baiduseo_keywords
wp_baiduseo_ai_lishi
wp_wztkj_friends
wp_baiduseo_kp_log
wp_baiduseo_neilian
wp_baiduseo_long
wp_baiduseo_zhizhu
wp_baiduseo_zz
wp_baiduseo_kp
wp_baiduseo_zhizhu_suoyin
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by 百度站长SEO合集(支持百度/神马/Bing/头条推送)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲2114.40 ▼0.161.94 ▲0.0744.60 ▼0.15
Dashboard /wp-admin2,211 ▲315.51 ▼0.1786.72 ▼1.1046.59 ▲6.97
Posts /wp-admin/edit.php2,149 ▲492.01 ▼0.0135.79 ▲1.6754.31 ▲19.10
Add New Post /wp-admin/post-new.php1,541 ▲622.85 ▲4.70646.11 ▼6.4352.25 ▼13.12
Media Library /wp-admin/upload.php1,419 ▲194.17 ▲0.03103.98 ▼3.9249.27 ▲1.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 10 tables in the database
    • wp_baiduseo_neilian
    • wp_baiduseo_kp_log
    • wp_baiduseo_zz
    • wp_baiduseo_zhizhu
    • wp_wztkj_friends
    • wp_baiduseo_ai_lishi
    • wp_baiduseo_long
    • wp_baiduseo_keywords
    • wp_baiduseo_zhizhu_suoyin
    • wp_baiduseo_kp
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/baiduseo/seo_title_index_html13.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/baiduseo/seo_head.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/baiduseo/seo_title_index_html11.php:3

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

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Add a description for screenshot #0 in baiduseo/assets to your readme.txt
  • Screenshots: Please add images for these screenshots: #10 (站内死链查询及生成死链文件提交百度站长), #11 (关键词排名查询监控,可以实时查询关键词排名情况), #12 (tag标签内链功能), #13 (360站长JS自动推送), #14 (Bing站长JS自动推送), #15 (今日头条站长JS自动推送), #16 (文章原创率检测), #17 (文章伪原创)
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

baiduseo/seo_title_baidu.php 77% from 13 tests

The main PHP script in "百度站长SEO合集(支持百度/神马/Bing/头条推送)" version 1.8.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("baiduseo.php" instead of "seo_title_baidu.php")
  • Plugin Name: Please shorten the plugin name (currently 73 characters long instead of max. 70)
  • Description: The description should be shorter than 140 characters (currently 477 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected64,308 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1831952236,059
PHP271,31644918,158
CSS131,12222610,091

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity131.42
▷ Minimum class complexity5.00
▷ Maximum class complexity421.00
Average method complexity10.97
▷ Minimum method complexity1.00
▷ Maximum method complexity100.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods158
▷ Static methods3119.62%
▷ Public methods158100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
69 PNG files occupy 0.61MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/logo.png59.53KB19.99KB▼ 66.41%
image/toutiao1.png1.60KB1.47KB▼ 8.17%
image/zl.png1.65KB1.70KB0.00%
image/xinshouyindao.png1.17KB0.72KB▼ 38.53%
image/baibaoxiang.png2.33KB0.88KB▼ 62.46%