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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.52ms] Passed 4 tests
Server-side resources used by TCG Card Links
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.29 ▼2.73 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.98 ▼8.51 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.41 ▲2.84 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.32 ▼17.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.99 ▼1.16 |
TCG Card Links /wp-admin/options-general.php?page=mtgCardsRef_settings | 3.22 | 29.53 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by TCG Card Links
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 13.71 ▼0.92 | 5.08 ▲3.30 | 37.95 ▼6.50 |
Dashboard /wp-admin | 2,216 ▲28 | 6.03 ▲0.17 | 97.63 ▼7.39 | 45.08 ▲6.34 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 2.04 ▲0.05 | 40.72 ▼0.41 | 36.44 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 18.19 ▼0.05 | 636.68 ▲22.14 | 60.18 ▲9.57 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.25 ▲0.03 | 97.31 ▼0.63 | 44.01 ▼0.02 |
TCG Card Links /wp-admin/options-general.php?page=mtgCardsRef_settings | 789 | 1.73 | 25.58 | 26.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tcg-card-links/tcg-card-links.php
- > /wp-content/plugins/tcg-card-links/api.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Screenshot 1), #2 (Screenshot 2), #3 (Screenshot 3), #4 (Screenshot 4)
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
tcg-card-links/tcg-card-links.php 92% from 13 tests
The main PHP file in "TCG Card Links" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 305 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin416 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 42 | 15 | 166 |
CSS | 1 | 6 | 0 | 131 |
JavaScript | 3 | 12 | 37 | 119 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/itunes.png | 5.12KB | 2.22KB | ▼ 56.59% |
images/tr.png | 0.71KB | 0.57KB | ▼ 20.38% |
images/tl.png | 0.59KB | 0.49KB | ▼ 17.49% |
images/bl.png | 2.99KB | 2.84KB | ▼ 5.22% |
images/br.png | 0.88KB | 0.71KB | ▼ 18.76% |