Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼0.65ms] Passed 4 tests
Analyzing server-side resources used by Click & Tweet
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.02 ▲2.91 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.06 ▲1.15 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.22 ▼0.39 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 92.68 ▼6.25 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.95 ▲5.11 |
Click & Tweet /wp-admin/options-general.php?page=click-and-tweet | 3.33 | 30.80 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
click_and_tweet_settings |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Click & Tweet
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.49 ▼0.85 | 8.23 ▲6.53 | 44.51 ▼0.68 |
Dashboard /wp-admin | 2,196 ▲22 | 5.55 ▼0.11 | 82.57 ▼5.16 | 37.30 ▼3.37 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.04 | 39.38 ▲4.02 | 35.74 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 18.26 ▼5.27 | 710.59 ▲56.66 | 37.83 ▼7.65 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.16 ▼0.06 | 96.36 ▼11.28 | 47.99 ▲0.37 |
Click & Tweet /wp-admin/options-general.php?page=click-and-tweet | 1,079 | 2.71 | 50.98 | 32.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/click-tweet/click-and-tweet.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
click-tweet/click-and-tweet.php 77% from 13 tests
Analyzing the main PHP file in "Click & Tweet" version 0.8.9
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("click-tweet.php" instead of "click-and-tweet.php")
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,479 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 157 | 262 | 581 |
JavaScript | 4 | 86 | 88 | 473 |
CSS | 2 | 62 | 12 | 425 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 78.00 |
▷ Minimum class complexity | 78.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 47 | |
▷ Static methods | 3 | 6.38% |
▷ Public methods | 39 | 82.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 17.02% |
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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/twitter-logo-white.png | 1.46KB | 0.97KB | ▼ 33.67% |
assets/img/twitter-logo.png | 1.69KB | 1.02KB | ▼ 39.81% |