Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▼4.36ms] Passed 4 tests
Analyzing server-side resources used by TEmbeds
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 41.95 ▼2.64 |
Dashboard /wp-admin | 3.71 ▲0.41 | 47.44 ▼4.02 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 48.70 ▲2.64 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 83.57 ▼13.40 |
Media Library /wp-admin/upload.php | 3.57 ▲0.35 | 37.17 ▲2.96 |
Tweet Embeds /wp-admin/options-general.php?page=ftf-alt-embed-tweet | 3.53 | 36.50 |
Server storage [IO: ▲9.22MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 131 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
TEmbeds: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.31 ▼1.06 | 2.03 ▲0.14 | 40.09 ▼5.82 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.03 | 99.09 ▼0.69 | 39.17 ▲3.23 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.07 | 39.54 ▼1.49 | 35.54 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.22 ▲0.12 | 662.14 ▲14.42 | 65.96 ▲8.14 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.01 | 95.68 ▲3.42 | 42.32 ▲1.40 |
Tweet Embeds /wp-admin/options-general.php?page=ftf-alt-embed-tweet | 1,009 | 2.05 | 24.00 | 30.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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: 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 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2 in tembeds/assets to your readme.txt
tembeds/index.php 92% from 13 tests
The entry point to "TEmbeds" version 1.2.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tembeds.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin22,635 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 10,148 |
Sass | 93 | 1,365 | 1,170 | 5,672 |
CSS | 4 | 3 | 10 | 4,206 |
PHP | 2 | 456 | 330 | 2,227 |
JavaScript | 3 | 77 | 59 | 349 |
Markdown | 1 | 17 | 0 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 145.67 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 1 | 0.93% |
▷ Public methods | 93 | 86.11% |
▷ Protected methods | 15 | 13.89% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 4.38MB with 2.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blog/performance.png | 143.50KB | 59.09KB | ▼ 58.82% |
images/blog/test-demo/desktop-on.png | 142.47KB | 56.59KB | ▼ 60.28% |
images/thumbnail/tweet-embeds-bw-tint.png | 382.04KB | 169.55KB | ▼ 55.62% |
images/assets/banner-772x250.png | 148.11KB | 63.37KB | ▼ 57.21% |
images/blog/test-demo/desktop-off.png | 137.66KB | 55.68KB | ▼ 59.55% |