Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.83ms] Passed 4 tests
An overview of server-side resources used by Twitter Card Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.81 ▼1.77 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.95 ▲1.79 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.50 ▲6.99 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.30 ▼5.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.54 ▼1.51 |
Twitter Card Generator /wp-admin/plugins.php?page=twitter-card-generator | 3.29 | 29.90 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
twitter-card-type |
Browser metrics Passed 4 tests
A check of browser resources used by Twitter Card Generator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲19 | 14.58 ▲0.20 | 1.66 ▼0.28 | 38.32 ▼6.15 |
Dashboard /wp-admin | 2,199 ▲19 | 5.52 ▼0.15 | 85.51 ▼17.23 | 38.53 ▼6.54 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.04 | 33.62 ▼4.37 | 36.94 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.04 ▼0.08 | 676.29 ▼11.18 | 53.20 ▼0.69 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.27 ▲0.03 | 100.08 ▼18.04 | 46.51 ▼4.28 |
Twitter Card Generator /wp-admin/plugins.php?page=twitter-card-generator | 1,277 | 2.09 | 25.10 | 31.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- twitter-card-type
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=twitter-card-generator
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/plugins.php?page=twitter-card-generator
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=twitter-card-generator
- > Deprecated in wp-content/plugins/twitter-card-generator/views/admin.php+72
Non-static method Twitter_Card_Generator::get_media_library_images() should not be called statically
SRP 0% 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/twitter-card-generator/views/public.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/twitter-card-generator/views/admin.php:87
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
twitter-card-generator/twitter-card-generator.php 92% from 13 tests
The main file in "Twitter Card Generator" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin521 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 41 | 229 | 470 |
CSS | 1 | 5 | 1 | 26 |
JavaScript | 2 | 1 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 19 | |
▷ Static methods | 3 | 15.79% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.60MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/web_photo.png | 165.80KB | 51.13KB | ▼ 69.16% |
images/web_summary_large.png | 142.31KB | 49.78KB | ▼ 65.02% |
images/ios_app.png | 31.51KB | 12.94KB | ▼ 58.93% |
images/web_summary.png | 70.59KB | 21.67KB | ▼ 69.30% |
images/web_gallery.png | 201.09KB | 55.52KB | ▼ 72.39% |