Benchmarks
Plugin footprint 83% 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.07MB] [CPU: ▼5.51ms] Passed 4 tests
Analyzing server-side resources used by BestWebSoft's Twitter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.86 ▼4.38 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.36 ▲1.74 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 59.53 ▲12.49 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.29 ▼20.27 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.65 ▲0.89 |
Server storage [IO: ▲5.28MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 128 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
twttr_options |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
bstwbsftwppdtplgns_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for BestWebSoft's Twitter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 14.36 ▼0.19 | 1.63 ▲0.06 | 39.19 ▼1.37 |
Dashboard /wp-admin | 2,308 ▲137 | 5.59 ▲0.01 | 88.00 ▲1.37 | 40.43 ▼1.71 |
Posts /wp-admin/edit.php | 2,229 ▲129 | 2.23 ▲0.24 | 37.58 ▼0.19 | 33.62 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,648 ▲120 | 23.32 ▲0.36 | 596.47 ▼74.35 | 64.71 ▲12.43 |
Media Library /wp-admin/upload.php | 1,519 ▲119 | 4.23 ▲0.02 | 97.69 ▼10.76 | 42.95 ▼2.50 |
BWS Panel /wp-admin/twitter.php?page=twttr-bws-panel | 26 | 0.42 | 0.09 | 17.98 |
Settings /wp-admin/twitter.php | 26 | 0.42 | 0.08 | 5.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/twitter-plugin/bws_menu/product_list.php:8
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/twitter-plugin/includes/class-twttr-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/twitter-plugin/twitter.php:572
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-plugin/bws_menu/class-bws-settings.php:1501
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/twitter.php?page=twttr-bws-panel
- > Network (severe)
wp-admin/twitter.php?page=twttr-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/twitter.php
- > Network (severe)
wp-admin/twitter.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Twitter buttons in the front-end.), #2 (Custom Twitter "Follow" button in the front-end.), #3 (Twitter Button Settings page.), #4 (Pasting Twitter shortcode into the content.)
twitter-plugin/twitter.php 92% from 13 tests
Analyzing the main PHP file in "BestWebSoft's Twitter" version 2.64
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("twitter-plugin.php" instead of "twitter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin20,131 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 12 | 4,185 | 6,507 | 8,492 |
CSS | 10 | 190 | 277 | 5,561 |
PHP | 9 | 478 | 639 | 5,349 |
JavaScript | 7 | 31 | 112 | 579 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 105.67 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 225.00 |
Average method complexity | 11.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 75.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 24.14% |
Functions | 70 | |
▷ Named functions | 70 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
68 PNG files occupy 3.57MB with 1.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
bws_menu/icons/themes/realestate.png | 280.34KB | 108.34KB | ▼ 61.35% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.21KB | ▼ 34.34% |
images/pro_screen_1.png | 22.67KB | 7.50KB | ▼ 66.90% |