Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.89MB] [CPU: ▼27.43ms] Passed 4 tests
Server-side resources used by Twitter Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.20 ▲3.82 |
Dashboard /wp-admin | 3.04 ▼0.26 | 26.41 ▼24.89 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 50.47 ▲3.03 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 24.88 ▼76.08 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 21.34 ▼11.76 |
TW Shortcode /wp-admin/options-general.php?page=twitter-shortcode/tw-shortcode.php | 3.04 | 22.90 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Twitter Shortcode: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.37 | 1.94 ▲0.19 | 44.21 ▼0.64 |
Dashboard /wp-admin | 2,199 ▲19 | 5.51 ▼0.16 | 84.31 ▼5.84 | 39.24 ▼3.38 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.96 ▼0.02 | 35.82 ▼2.04 | 34.14 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 22.87 ▼0.36 | 647.37 ▼10.47 | 56.98 ▲4.36 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.25 ▲0.07 | 100.95 ▼6.17 | 43.90 ▼4.86 |
TW Shortcode /wp-admin/options-general.php?page=twitter-shortcode/tw-shortcode.php | 1,071 | 2.01 | 24.68 | 29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-shortcode/tw-shortcode.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 24 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-shortcode/tw-shortcode.php
- > Notice in wp-content/plugins/twitter-shortcode/tw-shortcode.php+258
Trying to access array offset on value of type bool
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twitter-shortcode/tw-shortcode.php
- > Notice in wp-content/plugins/twitter-shortcode/tw-shortcode.php+258
Trying to access array offset on value of type null
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-shortcode/tw-shortcode.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Admin configuration.), #2 (Profile Widget.), #3 (Search #hash Widget.)
twitter-shortcode/tw-shortcode.php 92% from 13 tests
The primary PHP file in "Twitter Shortcode" version 0.9 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("twitter-shortcode.php" instead of "tw-shortcode.php")
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
Good job! No executable or dangerous file extensions detected296 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 50 | 296 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.04MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 14.85KB | 14.14KB | ▼ 4.77% |
screenshot-2.png | 13.74KB | 12.89KB | ▼ 6.15% |
screenshot-3.png | 12.88KB | 11.85KB | ▼ 8.03% |