Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/the-twitter-profile/widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; WPTimeTwitterProfileWidget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼56.19ms] Passed 4 tests
An overview of server-side resources used by The Twitter Profile
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 6.47 ▼33.88 |
Dashboard /wp-admin | 2.15 ▼1.16 | 8.03 ▼47.85 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 8.06 ▼45.18 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 7.96 ▼97.83 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 6.82 ▼30.70 |
Twitter Profile /wp-admin/plugins.php?page=WPTime_twitter_profile_settings | 2.15 | 7.56 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_wptimetwitterprofilewidget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for The Twitter Profile
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.43 ▼1.15 | 8.92 ▲7.05 | 43.86 ▲5.11 |
Dashboard /wp-admin | 2,196 ▲22 | 5.60 ▼0.00 | 92.36 ▼0.89 | 42.18 ▼1.90 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.01 | 38.57 ▲0.72 | 37.57 ▲3.29 |
Add New Post /wp-admin/post-new.php | 1,548 ▲19 | 23.15 ▲5.59 | 610.62 ▼104.20 | 58.73 ▲10.21 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.31 ▼0.03 | 99.90 ▼2.07 | 43.15 ▼2.97 |
Twitter Profile /wp-admin/plugins.php?page=WPTime_twitter_profile_settings | 1,082 | 2.05 | 24.13 | 38.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/the-twitter-profile/widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; WPTimeTwitterProfileWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_wptimetwitterprofilewidget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=WPTime_twitter_profile_settings
- > Deprecated in wp-content/plugins/the-twitter-profile/widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; WPTimeTwitterProfileWidget has a deprecated constructor
- > GET request to /wp-admin/plugins.php?page=WPTime_twitter_profile_settings
- > Deprecated in wp-content/plugins/the-twitter-profile/widget.php+476
Function create_function() is deprecated
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
The following issues need your attention
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/the-twitter-profile/widget.php
- > /wp-content/plugins/the-twitter-profile/the-twitter-profile.php
- > /wp-content/plugins/the-twitter-profile/Alobaidi.TwitterOAuth.php
- > /wp-content/plugins/the-twitter-profile/settings.php
- > /wp-content/plugins/the-twitter-profile/uninstall.php
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 30 tag instead of maximum 10
the-twitter-profile/the-twitter-profile.php 92% from 13 tests
"The Twitter Profile" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,045 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 168 | 36 | 656 |
CSS | 3 | 67 | 25 | 368 |
SVG | 1 | 0 | 0 | 15 |
JavaScript | 1 | 6 | 3 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 71.00 |
▷ Minimum class complexity | 71.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 18.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/verified_icon.png | 2.94KB | 1.83KB | ▼ 37.86% |
images/buy_button.png | 5.47KB | 1.99KB | ▼ 63.57% |