Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.57ms] Passed 4 tests
Server-side resources used by iG:Twitter Cards
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.99 ▼4.86 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.64 ▼6.03 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.98 ▼4.26 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.02 ▼11.14 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.23 ▲1.25 |
iG:Twitter Cards /wp-admin/options-general.php?page=ig-twitter-cards-page | 3.22 | 31.08 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
ig-twitter-cards-options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
iG:Twitter Cards: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.23 ▼0.99 | 1.66 ▼0.08 | 42.90 ▲0.41 |
Dashboard /wp-admin | 2,210 ▲22 | 4.79 ▼0.11 | 108.89 ▼7.33 | 39.32 ▼4.60 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.02 | 40.58 ▲3.71 | 36.17 ▲4.58 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 23.22 ▲0.08 | 675.59 ▲24.72 | 56.52 ▼9.83 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.23 ▼0.03 | 96.03 ▼4.32 | 40.06 ▼5.59 |
iG:Twitter Cards /wp-admin/options-general.php?page=ig-twitter-cards-page | 946 | 1.68 | 24.24 | 29.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- ig-twitter-cards-options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'iG_Twitter_Cards' not found in wp-content/plugins/ig-twitter-cards/class-ig-twitter-cards-frontend.php:9
- > PHP Fatal error
Uncaught Error: Class 'iG_Twitter_Cards' not found in wp-content/plugins/ig-twitter-cards/class-ig-twitter-cards-admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ig-twitter-cards/ig-twitter-cards.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 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: player card, cards, twitter, share, twitter cards...
ig-twitter-cards/ig-twitter-cards.php Passed 13 tests
"iG:Twitter Cards" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
This plugin enables Twitter Cards on a site. Check Twitter Cards documentation for details - https://dev.twitter.com/docs/cards
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin764 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 156 | 222 | 612 |
JavaScript | 3 | 20 | 39 | 79 |
CSS | 2 | 12 | 9 | 73 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 15 | 44.12% |
▷ Protected methods | 7 | 20.59% |
▷ Private methods | 12 | 35.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin