Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/twitter-profile-widget/twitter_profile_widget.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; TwitterProfileWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.98ms] Passed 4 tests
This is a short check of server-side resources used by Twitter Profile Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.53 ▼42.28 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.72 ▼46.61 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.94 ▼40.54 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.51 ▼90.49 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.33 ▼32.10 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_twitterprofilewidget |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Twitter Profile Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.33 ▼1.28 | 1.65 ▼0.29 | 43.56 ▼1.03 |
Dashboard /wp-admin | 2,205 ▲23 | 5.79 ▼0.13 | 96.34 ▼22.41 | 38.36 ▼7.33 |
Posts /wp-admin/edit.php | 2,088 ▼1 | 2.00 ▼0.01 | 37.10 ▲2.54 | 34.09 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,516 ▼26 | 17.75 ▼5.59 | 682.60 ▲16.78 | 69.11 ▲13.97 |
Media Library /wp-admin/upload.php | 1,390 ▲5 | 4.22 ▼0.04 | 103.17 ▼1.72 | 46.29 ▲1.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/twitter-profile-widget/twitter_profile_widget.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; TwitterProfileWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_twitterprofilewidget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/twitter-profile-widget/twitter_profile_widget.php:11
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/twitter-profile-widget/twitter_profile_widget.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (screenshot)
twitter-profile-widget/twitter_profile_widget.php 92% from 13 tests
The primary PHP file in "Twitter Profile Widget" version 0.9 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("twitter-profile-widget.php" instead of "twitter_profile_widget.php")
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 plugin216 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 8 | 121 |
JavaScript | 1 | 0 | 0 | 59 |
CSS | 1 | 4 | 0 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 38.79KB | 15.79KB | ▼ 59.30% |