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.20MB] [CPU: ▼5.20ms] Passed 4 tests
An overview of server-side resources used by Tcard WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 46.00 ▲5.01 |
Dashboard /wp-admin | 3.50 ▲0.16 | 53.99 ▼11.12 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 54.17 ▲0.19 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 97.98 ▼10.04 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 37.48 ▲0.18 |
Server storage [IO: ▲4.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 118 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_tcards |
wp_tcard_skins |
New WordPress options |
---|
tcard_skin_db_version |
tcards_table_db_version |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Tcard WP: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,161 ▲400 | 15.12 ▲0.77 | 34.32 ▲32.72 | 62.17 ▲21.78 |
Dashboard /wp-admin | 2,204 ▲27 | 5.54 ▼0.06 | 88.97 ▼11.19 | 43.38 ▲3.05 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.98 ▲0.01 | 38.85 ▼2.10 | 34.99 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.45 ▲0.47 | 617.61 ▼14.74 | 57.02 ▲9.18 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.13 ▼0.16 | 92.80 ▼14.01 | 48.09 ▼2.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- tcards_table_db_version
- tcard_skin_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 27× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/tcard-wp/front/templates/TcardGroup.php
- > /wp-content/plugins/tcard-wp/admin/templates/TcardDashboard.php
- > /wp-content/plugins/tcard-wp/front/templates/elements/TcardContentElements.php
- > /wp-content/plugins/tcard-wp/inc/elements-class/TcardHeader.php
- > /wp-content/plugins/tcard-wp/inc/TcardElementsController.php
- > /wp-content/plugins/tcard-wp/admin/TcardSaveData.php
- > /wp-content/plugins/tcard-wp/admin/TcardTables.php
- > /wp-content/plugins/tcard-wp/front/templates/elements/TcardHeaderElements.php
- > /wp-content/plugins/tcard-wp/admin/templates/elements/TcardHeaderElements.php
- > /wp-content/plugins/tcard-wp/inc/TcardDeactivate.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI found ("for donate buy Tcard WP PRO Version https://1.envato.market/c/1286225/275988/4415?subId1=widget&subId2=slider&subId3=gallery&sharedid=profile%20card&u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Ftcard-simple-plugin-for-creating-cards%2F22061987, or donate to my paypal account: alexandrucloanta@yahoo.com")
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
tcard-wp/tcard.php 85% from 13 tests
The principal PHP file in "Tcard WP" v. 1.8.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("tcard-wp.php" instead of "tcard.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected34,674 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 21 | 4,046 | 317 | 21,456 |
PHP | 30 | 1,024 | 553 | 3,935 |
SVG | 3 | 0 | 12 | 3,360 |
Sass | 16 | 43 | 34 | 2,221 |
LESS | 16 | 41 | 51 | 2,188 |
JavaScript | 4 | 243 | 38 | 1,514 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 114)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 27.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 7.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 27 | 33.75% |
▷ Public methods | 73 | 91.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 8.75% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 0.78KB | 0.61KB | ▼ 21.58% |