Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼141.29ms] Passed 4 tests
An overview of server-side resources used by Awesome Click To Tweet
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 40.85 ▲15.44 |
Dashboard /wp-admin | 3.12 ▲0.06 | 45.93 ▼1.54 |
Posts /wp-admin/edit.php | 3.21 ▲0.09 | 49.43 ▲6.29 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 94.69 ▼562.13 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 31.17 ▼7.78 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 1 new option
New WordPress options |
---|
tld_actt_activation_date |
Browser metrics Passed 4 tests
A check of browser resources used by Awesome Click To Tweet
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 16.21 ▲0.60 | 7.03 ▼1.39 | 53.14 ▲6.45 |
Dashboard /wp-admin | 2,975 ▲41 | 5.85 ▼0.09 | 142.26 ▼1.16 | 120.22 ▼6.17 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.69 ▲0.01 | 72.52 ▲1.51 | 94.24 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼157 | 18.89 ▲0.46 | 403.49 ▲4.86 | 127.12 ▲16.91 |
Media Library /wp-admin/upload.php | 1,809 ▼1 | 5.01 ▼0.00 | 150.59 ▼11.67 | 126.24 ▼4.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- tld_actt_activation_date
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/awesome-click-to-tweet/tld-awesome-click-to-tweet.php
- 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/awesome-click-to-tweet/includes/tld-actt-tinymce-button.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Please specify the plugin name on the first line (
=== awesome-click-to-tweet ===
)
awesome-click-to-tweet/tld-awesome-click-to-tweet.php 92% from 13 tests
The main PHP script in "Awesome Click To Tweet" version 1.0.7 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awesome-click-to-tweet.php" instead of "tld-awesome-click-to-tweet.php")
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 plugin1,024 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 24 | 61 | 552 |
PHP | 5 | 84 | 68 | 315 |
CSS | 5 | 33 | 19 | 120 |
Markdown | 1 | 15 | 0 | 16 |
SVG | 1 | 0 | 0 | 11 |
Sass | 1 | 2 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshort-2.png | 34.28KB | 10.66KB | ▼ 68.90% |
assets/screenshort-6.png | 14.02KB | 5.11KB | ▼ 63.56% |
assets/screenshort-5.png | 14.49KB | 5.66KB | ▼ 60.97% |
assets/screenshort-4.png | 12.21KB | 4.84KB | ▼ 60.35% |
assets/screenshort-1.png | 3.63KB | 1.94KB | ▼ 46.50% |