Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.23MB] [CPU: ▼27.70ms] Passed 4 tests
Analyzing server-side resources used by Easy Tweet Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 44.67 ▲5.44 |
Dashboard /wp-admin | 3.08 ▼0.27 | 28.88 ▼33.98 |
Posts /wp-admin/edit.php | 3.22 ▼0.14 | 35.79 ▼16.28 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.44 | 68.58 ▼46.46 |
Media Library /wp-admin/upload.php | 3.16 ▼0.07 | 24.76 ▼14.07 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Tweet Embed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.38 ▲0.18 | 1.95 ▲0.26 | 43.80 ▲0.21 |
Dashboard /wp-admin | 2,199 ▲18 | 5.50 ▼0.21 | 88.08 ▼12.76 | 42.55 ▼1.49 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.04 ▲0.00 | 41.92 ▼0.38 | 38.32 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.23 ▼0.13 | 678.27 ▲28.39 | 53.71 ▼10.37 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.18 ▲0.01 | 98.57 ▼18.41 | 46.16 ▼1.13 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% 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 0% from 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/easy-tweet-embed/file.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-tweet-embed/functions.php:72
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The Easy Tweet Embed Button.), #2 (The Easy Tweet Embed box.), #3 (An example of an embedded tweet.), #4 (The end result - what pops up when you click on an embedded tweet.)
- Plugin Name: Please specify the plugin name on the first line (
=== easy-tweet-embed ===
)
easy-tweet-embed/functions.php 92% from 13 tests
Analyzing the main PHP file in "Easy Tweet Embed" version 1.7
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-tweet-embed.php" instead of "functions.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
There were no executable files found in this plugin1,309 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 199 | 159 | 1,071 |
CSS | 2 | 11 | 1 | 148 |
PHP | 2 | 18 | 17 | 90 |
PHP code Passed 2 tests
This is a very shot review of 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.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
10 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 28.64KB | 10.18KB | ▼ 64.46% |
screenshot-2.png | 49.85KB | 16.92KB | ▼ 66.07% |
screenshot-3.png | 34.17KB | 12.95KB | ▼ 62.10% |
css/images/embedtweet.png | 2.97KB | 0.46KB | ▼ 84.58% |
css/images/button-grad.png | 0.24KB | 0.24KB | 0.00% |