Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼2.82ms] Passed 4 tests
A check of server-side resources used by Template Kit - Import
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 37.99 ▲0.69 |
Dashboard /wp-admin | 3.63 ▲0.29 | 45.17 ▼12.49 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 46.73 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 91.71 ▲0.72 |
Media Library /wp-admin/upload.php | 3.49 ▲0.27 | 34.32 ▲2.50 |
Template Kit /wp-admin/tools.php?page=template-kit-import | 3.46 | 30.70 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 120 new files
Database: no new tables, 8 new options
New WordPress options |
---|
template_kit_import_install_time |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
template_kit_import_version |
Browser metrics Passed 4 tests
Checking browser requirements for Template Kit - Import
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.28 ▼0.88 | 2.17 ▲0.61 | 40.47 ▼0.83 |
Dashboard /wp-admin | 2,210 ▲19 | 5.80 ▼0.11 | 96.33 ▼5.99 | 39.32 ▼0.96 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▼0.00 | 35.00 ▼1.56 | 34.18 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.50 ▲0.07 | 572.99 ▼122.82 | 47.10 ▼22.41 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.24 ▲0.04 | 100.22 ▼6.11 | 43.51 ▼1.20 |
Template Kit /wp-admin/tools.php?page=template-kit-import | 904 | 2.46 | 46.07 | 42.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #4, #5, #6 in template-kit-import/assets to your readme.txt
template-kit-import/template-kit-import.php Passed 13 tests
The main PHP script in "Template Kit - Import" version 1.0.14 is automatically included on every request by WordPress
33 characters long description:
Import Template Kits to WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,498 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 527 | 1,114 | 2,217 |
JSX | 48 | 227 | 181 | 1,875 |
Sass | 26 | 190 | 3 | 1,140 |
SVG | 6 | 0 | 5 | 165 |
JavaScript | 4 | 14 | 63 | 99 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 13.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 4 | 18.18% |
▷ Concrete classes | 18 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 2 | 1.77% |
▷ Public methods | 105 | 92.92% |
▷ Protected methods | 1 | 0.88% |
▷ Private methods | 7 | 6.19% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 12 | |
▷ Global constants | 9 | 75.00% |
▷ Class constants | 3 | 25.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.04MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/7b1453e570abffbb55937a53ebfc4e10.png | 37.58KB | 39.72KB | 0.00% |