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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.98ms] Passed 4 tests
Analyzing server-side resources used by Taobao Catalog
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 45.22 ▲4.25 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.27 ▼5.08 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.00 ▼9.89 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.03 | 85.29 ▼16.14 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 41.12 ▲3.18 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Taobao Catalog
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.28 ▼0.07 | 2.10 ▲0.17 | 43.40 ▼1.34 |
Dashboard /wp-admin | 2,215 ▲35 | 5.57 ▼0.07 | 93.69 ▲5.48 | 41.47 ▼0.97 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.01 ▲0.04 | 38.34 ▲1.03 | 37.04 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.14 ▼0.28 | 676.51 ▼69.05 | 55.19 ▼3.45 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.23 ▲0.07 | 102.11 ▼3.80 | 42.17 ▼3.60 |
Taobao Catalog Settings /wp-admin/taobao.php | 26 | 0.42 | 0.15 | 14.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/taobao-catalog-parser/taobao.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/taobao.php
- > Network (severe)
wp-admin/taobao.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: A description for screenshot #4 is missing in taobao-catalog-parser/assets to your readme.txt
taobao-catalog-parser/taobao.php 92% from 13 tests
"Taobao Catalog" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("taobao-catalog-parser.php" instead of "taobao.php")
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
Everything looks great! No dangerous files found in this plugin235 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 110 | 11 | 235 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 50.00% |
▷ Protected methods | 1 | 50.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 73.92KB | 36.17KB | ▼ 51.07% |
screenshot-4.png | 15.31KB | 9.39KB | ▼ 38.67% |
screenshot-1.png | 23.05KB | 11.76KB | ▼ 49.00% |
screenshot-2.png | 14.34KB | 7.77KB | ▼ 45.80% |