72% superfast-seo

Code Review | Super Fast SEO优化插件

WordPress plugin Super Fast SEO优化插件 scored72%from 54 tests.

About plugin

  • Plugin page: superfast-seo
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: Dec 22, 2021
  • Number of updates: 54
  • Update frequency: every 1.7 days
  • Top authors: jizhuti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /6,363 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.02MB] [CPU: ▲3.08ms] Passed 4 tests

This is a short check of server-side resources used by Super Fast SEO优化插件
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0636.03 ▼6.53
Dashboard /wp-admin3.35 ▲0.0554.93 ▲7.82
Posts /wp-admin/edit.php3.40 ▲0.0557.85 ▲9.09
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.78 ▲1.92
Media Library /wp-admin/upload.php3.28 ▲0.0550.95 ▲15.49
生成 robots.txt /wp-admin/admin.php?page=superfastseo_robots_set3.2740.18
百度实时主动推送 /wp-admin/admin.php?page=superfastseo_baidu_submit3.2739.31
过滤HTML垃圾代码 /wp-admin/admin.php?page=articlefilters3.2740.99
自定义关健词内链 /wp-admin/admin.php?page=keywordlink3.2638.63
图片压缩处理 /wp-admin/admin.php?page=imgcompress3.2739.02
SEO TDK优化 /wp-admin/admin.php?page=superfast_meta3.3338.85
指定文章添加内链 /wp-admin/admin.php?page=keyword_link3.2640.58
屏蔽垃圾蜘蛛 /wp-admin/admin.php?page=superfastseo_none_ua3.2738.22
后台安全增强 /wp-admin/admin.php?page=adminsafe3.2938.95
TAGS优化设置 /wp-admin/admin.php?page=superfastseo_tags_set3.2738.82

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Super Fast SEO优化插件
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.25 ▼1.054.60 ▲2.8039.73 ▼3.68
Dashboard /wp-admin2,292 ▲1034.83 ▼0.1398.02 ▼9.1449.75 ▲5.12
Posts /wp-admin/edit.php2,172 ▲832.06 ▲0.0040.09 ▼3.0047.08 ▲12.22
Add New Post /wp-admin/post-new.php6,344 ▲4,81121.73 ▼1.63913.20 ▲222.21105.36 ▲39.79
Media Library /wp-admin/upload.php1,468 ▲774.16 ▼0.0193.61 ▼5.1654.74 ▲8.15
生成 robots.txt /wp-admin/admin.php?page=superfastseo_robots_set8812.0224.3058.28
百度实时主动推送 /wp-admin/admin.php?page=superfastseo_baidu_submit8812.0325.4750.59
过滤HTML垃圾代码 /wp-admin/admin.php?page=articlefilters8582.0524.6450.57
自定义关健词内链 /wp-admin/admin.php?page=keywordlink8342.0625.2551.47
图片压缩处理 /wp-admin/admin.php?page=imgcompress8822.0623.9452.13
SEO TDK优化 /wp-admin/admin.php?page=superfast_meta9921.8626.7556.34
指定文章添加内链 /wp-admin/admin.php?page=keyword_link8342.0624.0143.91
屏蔽垃圾蜘蛛 /wp-admin/admin.php?page=superfastseo_none_ua8752.0524.5850.71
后台安全增强 /wp-admin/admin.php?page=adminsafe9242.1622.5451.90
TAGS优化设置 /wp-admin/admin.php?page=superfastseo_tags_set8782.0624.6457.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=superfast_meta
    • > Notice in wp-content/plugins/superfast-seo/modules/seo/meta-form.php+103
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/superfast-seo/modules/seo/rewritetheme.php
    • > /wp-content/plugins/superfast-seo/modules/link/keyword-link.php
    • > /wp-content/plugins/superfast-seo/modules/link/keywordlink.php
    • > /wp-content/plugins/superfast-seo/readme.php
  • 70× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/superfast-seo/functions/rename.php:12
    • > PHP Warning
      copy(SUPERFASTSEO_PLUGIN_DIRobject-cache.php): failed to open stream: No such file or directory in wp-content/plugins/superfast-seo/functions/memcached.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/superfast-seo/functions/del-wp-generator.php:3
    • > PHP Warning
      require_once(wp-content/plugins/superfast-seo/wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/superfast-seo/wp-blog-header.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/superfast-seo/wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/superfast-seo/wp-blog-header.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/superfast-seo/functions/addimgclass.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/superfast-seo/functions/filters-htmlcode.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/superfast-seo/modules/seo/singular-form.php:2
    • > PHP Warning
      Use of undefined constant SUPERFASTSEO_PLUGIN_DIR - assumed 'SUPERFASTSEO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/superfast-seo/functions/memcached.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/superfast-seo/functions/del-wp-site-health.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (基础优化【加速、禁用、移除】), #2 (文章发布前清理、过滤HTML垃圾代码), #3 (上传图片压缩、重命名), #4 (数据库查询优化【让WP支持百万级数据】), #5 (后台安全增强), #6 (SEO TDK优化设置), #7 (屏蔽垃圾蜘蛛), #8 (生成 robots.txt 文件)
The official readme.txt might help

superfast-seo/index.php 85% from 13 tests

The main PHP file in "Super Fast SEO优化插件" ver. 1.0.10 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("superfast-seo.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 305 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,075 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
PHP706051,5833,075

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity84.50
▷ Minimum class complexity56.00
▷ Maximum class complexity113.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods65
▷ Static methods00.00%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions129
▷ Named functions12496.12%
▷ Anonymous functions53.88%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin