Benchmarks
Plugin footprint 65% 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.22MB] [CPU: ▼308.04ms] Passed 4 tests
Server-side resources used by The Advanced Twitter Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 62.44 ▲7.64 |
Dashboard /wp-admin | 3.42 ▲0.01 | 39.08 ▲3.63 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.46 ▼2.93 |
Add New Post /wp-admin/post-new.php | 6.05 ▼0.92 | 88.76 ▼1,229.44 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 26.89 ▼3.40 |
Advanced Twitter /wp-admin/options-general.php?page=dragon-social-option | 3.27 | 24.46 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_dragon_tweet |
New WordPress options |
---|
ds_display_top |
ds_related |
ds_display_bottom |
ds_counttype |
Browser metrics Passed 4 tests
The Advanced Twitter Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲52 | 15.81 ▲0.14 | 5.72 ▼0.10 | 2.59 ▼0.07 |
Dashboard /wp-admin | 2,897 ▲46 | 6.13 ▼0.08 | 116.56 ▼15.96 | 150.90 ▼4.61 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.25 ▲0.01 | 60.76 ▼3.12 | 145.26 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,850 ▲189 | 21.43 ▲4.30 | 443.29 ▲24.05 | 163.91 ▲16.45 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.54 ▼0.01 | 142.62 ▲4.72 | 184.88 ▼5.12 |
Advanced Twitter /wp-admin/options-general.php?page=dragon-social-option | 1,220 | 2.39 | 56.98 | 110.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_dragon_tweet
- Zombie WordPress options were found after uninstall: 4 options
- ds_display_bottom
- ds_display_top
- ds_related
- ds_counttype
Smoke tests 75% 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)
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/advanced-twitter/advanced-twitter.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: advanced twitter plugin, social sharing plugin, twitter plugin
advanced-twitter/advanced-twitter.php Passed 13 tests
"The Advanced Twitter Plugin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Easily create a custom tweet button on your posts with a custom tweet description.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin311 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 51 | 311 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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 | 9 | |
▷ Named functions | 9 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ds-logo.png | 5.08KB | 2.13KB | ▼ 58.20% |