74% nleilian-guanjc

Code Review | 内链tag标签

WordPress plugin 内链tag标签 scored74%from 54 tests.

About plugin

  • Plugin page: nleilian-guanjc
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: May 30, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 56
  • Update frequency: every 22.5 days
  • Top authors: kelerkgibo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,518 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.25MB] [CPU: ▼0.27ms] Passed 4 tests

Analyzing server-side resources used by 内链tag标签
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2335.82 ▼6.99
Dashboard /wp-admin3.56 ▲0.2648.77 ▲1.56
Posts /wp-admin/edit.php3.68 ▲0.3252.01 ▲2.13
Add New Post /wp-admin/post-new.php6.15 ▲0.2597.70 ▲2.21
Media Library /wp-admin/upload.php3.49 ▲0.2536.85 ▲3.13

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: 2 new tables, 7 new options
New tables
wp_baiduseo_neilian
wp_baiduseo_long
New WordPress options
widget_recent-comments
tagmanage_tongji
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for 内链tag标签
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4414.34 ▲0.001.75 ▼0.1338.69 ▼5.86
Dashboard /wp-admin2,214 ▲335.62 ▼0.0791.23 ▼15.4944.63 ▲3.73
Posts /wp-admin/edit.php2,116 ▲161.95 ▲0.0038.76 ▲2.3640.52 ▲3.94
Add New Post /wp-admin/post-new.php1,539 ▲1323.38 ▲0.22622.09 ▼80.9558.98 ▲8.83
Media Library /wp-admin/upload.php1,419 ▲194.21 ▼0.0399.59 ▼0.2846.33 ▲1.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_baiduseo_neilian
    • wp_baiduseo_long
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • tagmanage_tongji
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nleilian-guanjc/tagmanage.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/nleilian-guanjc/tagmanage_html.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: tag

nleilian-guanjc/tagmanage.php 92% from 13 tests

The main PHP script in "内链tag标签" version 0.2.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nleilian-guanjc.php" instead of "tagmanage.php")

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 detected8,330 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10474,770
PHP3218812,372
CSS154441,188

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.66
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
13 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/bangzhushuoming.png4.19KB1.64KB▼ 60.98%
image/wzbbx.png81.06KB28.41KB▼ 64.95%
image/baiduchajian.png78.89KB38.25KB▼ 51.51%
image/guanbi.png4.12KB1.46KB▼ 64.64%
image/weixingzh.png13.00KB5.76KB▼ 55.68%