Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼3.21ms] Passed 4 tests
Server-side resources used by Twitter Intents
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.83 ▼2.05 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.27 ▼7.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.67 ▼1.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.58 ▲0.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.47 ▼2.45 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Twitter Intents
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.25 ▼1.13 | 1.67 ▼0.25 | 41.47 ▼4.30 |
Dashboard /wp-admin | 2,209 ▲24 | 4.87 ▼1.01 | 112.24 ▲7.63 | 41.71 ▼3.89 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.16 | 39.48 ▼0.45 | 34.64 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6,240 ▲4,721 | 21.67 ▼1.17 | 837.00 ▲158.85 | 60.71 ▲2.71 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.30 ▲0.05 | 94.89 ▼1.04 | 43.72 ▲0.16 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/twitter-intents/twitter.intents.php:125
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (After Publishing your post and tweeting a link to it. Copy the tweet ID.), #2 (Paste it in your edit post / page screen.), #3 (Check the bottom of your post / page!)
twitter-intents/twitter.intents.php 92% from 13 tests
Analyzing the main PHP file in "Twitter Intents" version 0.1.0
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("twitter-intents.php" instead of "twitter.intents.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin109 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 31 | 73 |
CSS | 1 | 8 | 0 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.40 |
▷ 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 | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.71MB with 0.49MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 205.40KB | 55.85KB | ▼ 72.81% |
images/sprite.png | 2.79KB | 1.07KB | ▼ 61.78% |
screenshot-2.png | 277.13KB | 83.03KB | ▼ 70.04% |
screenshot-3.png | 237.60KB | 70.11KB | ▼ 70.49% |