100% zhanzhangb-tcdn

Code Review | zhanzhangb-tcdn

WordPress plugin zhanzhangb-tcdn scored 100% from 54 tests.

About plugin

  • Plugin page: zhanzhangb-tcdn
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.1
  • WordPress version: 5.9.2
  • First release: Mar 31, 2020
  • Latest release: May 20, 2020
  • Number of updates: 14
  • Update frequency: every 3.6 days
  • Top authors: ywtywt (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 482 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼286.87ms] Passed 4 tests

Analyzing server-side resources used by zhanzhangb-tcdn
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0757.73 ▼0.10
Dashboard /wp-admin3.49 ▲0.0847.04 ▲9.62
Posts /wp-admin/edit.php3.72 ▲0.0893.52 ▲45.07
Add New Post /wp-admin/post-new.php6.96 ▼0.0299.20 ▼1,158.43
Media Library /wp-admin/upload.php3.37 ▲0.0732.52 ▲1.42
站长帮 - 自动刷新腾讯云CDN设置 /wp-admin/options-general.php?page=zhanzhangb_tcdn3.3464.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
zhanzhangb_tcdn_activation

Browser metrics Passed 4 tests

This is an overview of browser requirements for zhanzhangb-tcdn
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1515.39 ▼0.336.19 ▲0.122.24 ▼0.76
Dashboard /wp-admin2,897 ▲436.11 ▼0.07119.38 ▼13.13168.43 ▲6.75
Posts /wp-admin/edit.php2,696 ▲23.23 ▲0.0063.36 ▲0.46152.70 ▲10.26
Add New Post /wp-admin/post-new.php1,755 ▲9421.91 ▲4.26465.55 ▲82.70170.99 ▲10.48
Media Library /wp-admin/upload.php1,706 ▲55.47 ▼0.03148.51 ▼4.85201.67 ▲15.98
站长帮 - 自动刷新腾讯云CDN设置 /wp-admin/options-general.php?page=zhanzhangb_tcdn1,0462.5163.32182.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
2 plugin tags: cdn, cache

zhanzhangb-tcdn/zhanzhangb-tcdn.php 92% from 13 tests

Analyzing the main PHP file in "zhanzhangb-tcdn" version 1.2.0
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 162 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 detected308 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22234308

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin