Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, class 'wad_twitter_cards' not found
Server metrics [RAM: ▼0.31MB] [CPU: ▼156.74ms] Passed 4 tests
An overview of server-side resources used by Dewey's Twitter Card Helper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 39.55 ▲13.23 |
Dashboard /wp-admin | 3.09 ▲0.04 | 52.70 ▼0.15 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 44.62 ▼5.39 |
Add New Post /wp-admin/post-new.php | 4.07 ▼1.36 | 52.64 ▼622.33 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 40.92 ▲0.91 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Dewey's Twitter Card Helper
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲141 | 15.92 ▼0.10 | 11.08 ▲1.11 | 50.47 ▼4.00 |
Dashboard /wp-admin | 2,967 ▲33 | 5.91 ▼0.00 | 156.14 ▼5.65 | 115.98 ▼6.14 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.73 ▲0.01 | 73.52 ▼16.88 | 88.99 ▼15.80 |
Add New Post /wp-admin/post-new.php | 1,683 ▼1,892 | 16.26 ▲1.39 | 420.15 ▼144.30 | 116.00 ▼7.01 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▲0.01 | 162.22 ▼17.03 | 125.76 ▲2.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, class 'wad_twitter_cards' not found
Smoke tests 50% from 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 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/deweys-twitter-card-helper/templates/twittercardform.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: twitter_desc in wp-content/plugins/deweys-twitter-card-helper/templates/twittercardform.php on line 23
- > PHP Notice
Undefined variable: twitter_type in wp-content/plugins/deweys-twitter-card-helper/templates/twittercardform.php on line 28
- > PHP Notice
Undefined variable: twitter_title in wp-content/plugins/deweys-twitter-card-helper/templates/twittercardform.php on line 18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: twitter, social, sharing, twitter cards
deweys-twitter-card-helper/wad_twitter_cards.php 85% from 13 tests
"Dewey's Twitter Card Helper" version 2.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("deweys-twitter-card-helper.php" instead of "wad_twitter_cards.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin158 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 47 | 123 | 151 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin