Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼4.00ms] 75% from 4 tests
An overview of server-side resources used by JM Twitter Cards
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,199.18ms on /wp-admin/admin.php?page=jm_tc_tutorials)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 38.82 ▼3.58 |
Dashboard /wp-admin | 3.84 ▲0.49 | 63.98 ▼7.62 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 56.80 ▲4.12 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 94.91 ▼8.92 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 45.43 ▲7.16 |
Tutorials /wp-admin/admin.php?page=jm_tc_tutorials | 3.71 | 2,199.18 |
JM Twitter Cards /wp-admin/admin.php?page=jm_tc | 3.70 | 42.40 |
About /wp-admin/admin.php?page=jm_tc_about | 3.67 | 36.52 |
Import / Export /wp-admin/admin.php?page=jm_tc_import_export | 3.68 | 41.67 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
jm_tc |
jm_tc_cpt |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JM Twitter Cards
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 13.21 ▼1.54 | 1.77 ▼0.00 | 48.44 ▲4.31 |
Dashboard /wp-admin | 2,253 ▲50 | 5.79 ▲0.90 | 104.17 ▼4.49 | 39.29 ▼6.55 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.00 ▼0.03 | 36.20 ▼4.43 | 31.33 ▼9.58 |
Add New Post /wp-admin/post-new.php | 1,564 ▲18 | 23.76 ▲0.63 | 614.93 ▼47.19 | 55.15 ▲0.28 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.09 ▼0.15 | 119.65 ▼0.01 | 47.12 ▼5.06 |
Tutorials /wp-admin/admin.php?page=jm_tc_tutorials | 3,136 | 15.80 | 131.68 | 66.14 |
JM Twitter Cards /wp-admin/admin.php?page=jm_tc | 1,320 | 3.26 | 53.80 | 32.78 |
About /wp-admin/admin.php?page=jm_tc_about | 787 | 2.03 | 28.45 | 32.34 |
Import / Export /wp-admin/admin.php?page=jm_tc_import_export | 870 | 2.06 | 28.63 | 33.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/jm-twitter-cards/jm-twitter-cards.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: cards, twitter, product, photo, gallery...
jm-twitter-cards/jm-twitter-cards.php 92% from 13 tests
The main file in "JM Twitter Cards" v. 12... serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "12...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,100 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 474 | 647 | 1,944 |
PO File | 3 | 396 | 489 | 876 |
JavaScript | 9 | 12 | 20 | 223 |
CSS | 7 | 2 | 0 | 43 |
SVG | 1 | 0 | 0 | 8 |
JSON | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.23 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 16 | 15.53% |
▷ Public methods | 96 | 93.20% |
▷ Protected methods | 7 | 6.80% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 9 | |
▷ Global constants | 9 | 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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/Twitter_logo_blue.png | 22.16KB | 9.21KB | ▼ 58.46% |