Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.92ms] Passed 4 tests
This is a short check of server-side resources used by Inline Click To Tweet
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.57 ▼1.17 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.13 ▲0.88 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.54 ▲6.48 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 88.88 ▼16.61 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.00 ▲5.23 |
Inline Click To Tweet /wp-admin/options-general.php?page=inline-clicktotweet | 3.26 | 32.54 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Inline Click To Tweet: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.39 ▼0.99 | 1.89 ▲0.17 | 41.05 ▼0.80 |
Dashboard /wp-admin | 2,232 ▲40 | 5.07 ▲0.12 | 106.07 ▼0.44 | 39.90 ▼4.73 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.32 ▲0.28 | 41.55 ▲7.21 | 34.54 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.38 ▲0.05 | 622.06 ▼57.47 | 35.43 ▼15.83 |
Media Library /wp-admin/upload.php | 1,414 ▲32 | 4.41 ▲0.07 | 99.02 ▲1.02 | 40.74 ▲0.41 |
Inline Click To Tweet /wp-admin/options-general.php?page=inline-clicktotweet | 1,040 | 2.37 | 45.47 | 52.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/inline-click-to-tweet/inc/shortlinks.php
- > /wp-content/plugins/inline-click-to-tweet/inc/shortcodes.php
- > /wp-content/plugins/inline-click-to-tweet/inline-click-to-tweet.php
- > /wp-content/plugins/inline-click-to-tweet/inc/functions.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/inline-click-to-tweet/inc/admin-view.php:10
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The plugin's main settings panel.), #2 (A button will be added to the visual editor after the plugin is activated.)
inline-click-to-tweet/inline-click-to-tweet.php 92% from 13 tests
Analyzing the main PHP file in "Inline Click To Tweet" version 1.0.0
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin595 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 106 | 23 | 323 |
CSS | 2 | 28 | 0 | 191 |
JavaScript | 2 | 17 | 4 | 80 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 24 | |
▷ Named functions | 24 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 107.91KB | 34.29KB | ▼ 68.23% |
screenshot-1.png | 85.91KB | 25.45KB | ▼ 70.38% |
assets/img/twitter-bird.png | 18.80KB | 2.82KB | ▼ 85.01% |