84% kuaitutu-crawler

Code Review | 快兔兔AI采集器(站群版)

WordPress plugin 快兔兔AI采集器(站群版) scored84%from 54 tests.

About plugin

  • Plugin page: kuaitutu-crawler
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: May 7, 2022
  • Latest release: May 21, 2022
  • Number of updates: 17
  • Update frequency: every 1.1 days
  • Top authors: gulifeng (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,425 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.00MB] [CPU: ▼9.16ms] Passed 4 tests

Analyzing server-side resources used by 快兔兔AI采集器(站群版)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.73 ▼6.04
Dashboard /wp-admin3.31 ▼0.0351.35 ▼7.69
Posts /wp-admin/edit.php3.36 ▲0.0149.99 ▼4.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.62 ▼18.54
Media Library /wp-admin/upload.php3.23 ▲0.0132.76 ▼2.47

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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by 快兔兔AI采集器(站群版)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.191.86 ▲0.1542.29 ▼0.39
Dashboard /wp-admin2,209 ▲245.91 ▲0.0698.03 ▼2.9939.94 ▼4.95
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0538.59 ▼4.0734.48 ▼5.56
Add New Post /wp-admin/post-new.php1,534 ▲623.06 ▲4.62664.54 ▲41.2848.25 ▼4.53
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0195.70 ▼5.8041.86 ▼1.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kuaitutu-crawler/basic-auth.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: auto-post, auto publish, ai, auto post pro, auto post

kuaitutu-crawler/basic-auth.php 85% from 13 tests

The main PHP script in "快兔兔AI采集器(站群版)" version 1.4 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("kuaitutu-crawler.php" instead of "basic-auth.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin36 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP111931
JSON1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin