Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.06MB] [CPU: ▼6.66ms] Passed 4 tests
A check of server-side resources used by The Advanced Twitter Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 38.79 ▲1.57 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.77 ▼0.27 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 45.43 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.40 | 66.04 ▼27.57 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.41 ▲2.53 |
Advanced Twitter /wp-admin/options-general.php?page=dragon-social-option | 3.24 | 32.25 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_dragon_tweet |
New WordPress options |
---|
can_compress_scripts |
ds_display_top |
theysaidso_admin_options |
ds_display_bottom |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
ds_related |
ds_counttype |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for The Advanced Twitter Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.11 | 1.63 ▲0.04 | 38.30 ▼3.28 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.95 | 100.64 ▼10.67 | 37.98 ▼5.81 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.03 ▲0.01 | 39.30 ▲5.21 | 34.85 ▲1.92 |
Add New Post /wp-admin/post-new.php | 6,302 ▲4,783 | 26.06 ▲2.97 | 914.67 ▲249.15 | 57.14 ▲3.81 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.05 | 93.82 ▼4.81 | 46.76 ▲4.78 |
Advanced Twitter /wp-admin/options-general.php?page=dragon-social-option | 934 | 2.21 | 24.19 | 24.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_dragon_tweet
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-posts
- ds_display_top
- ds_related
- widget_theysaidso_widget
- ds_display_bottom
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- ds_counttype
- theysaidso_admin_options
Smoke tests 75% 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 50% 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 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 just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: twitter plugin, advanced twitter plugin, social sharing plugin
advanced-twitter/advanced-twitter.php Passed 13 tests
This is the main PHP file of "The Advanced Twitter Plugin" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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% |