Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/dw-twitter-base/include/widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; DwTwWidget has a deprecated constructor
Server metrics [RAM: ▼1.68MB] [CPU: ▼58.14ms] Passed 4 tests
A check of server-side resources used by Twitter Base
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.14 | 7.24 ▼39.38 |
Dashboard /wp-admin | 2.34 ▼1.01 | 10.19 ▼53.56 |
Posts /wp-admin/edit.php | 2.34 ▼1.02 | 8.49 ▼44.24 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 9.04 ▼95.36 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 8.27 ▼33.14 |
Twitter Base /wp-admin/options-general.php?page=my-unique-identifier | 2.34 | 13.22 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 12 new options
New WordPress options |
---|
dw_consumersecret |
can_compress_scripts |
dw_accesstoken |
widget_theysaidso_widget |
dw_consumerkey |
theysaidso_admin_options |
dw_twitteruser |
dw_accesstokensecret |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Twitter Base
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.31 ▼0.05 | 2.00 ▲0.34 | 43.90 ▲3.08 |
Dashboard /wp-admin | 2,203 ▲25 | 5.66 ▲0.05 | 95.25 ▼8.49 | 42.93 ▼2.84 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.01 ▲0.01 | 33.88 ▼4.84 | 39.59 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.24 ▲0.12 | 605.92 ▼71.41 | 53.09 ▼9.89 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.25 ▲0.03 | 100.05 ▼15.17 | 45.07 ▼3.74 |
Twitter Base /wp-admin/options-general.php?page=my-unique-identifier | 1,052 | 2.32 | 24.94 | 34.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/dw-twitter-base/include/widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; DwTwWidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 12 options in the database
- widget_dwtwwidget
- db_upgraded
- can_compress_scripts
- dw_twitteruser
- widget_theysaidso_widget
- dw_accesstokensecret
- dw_consumersecret
- dw_consumerkey
- widget_recent-comments
- dw_accesstoken
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=my-unique-identifier
- > Deprecated in wp-content/plugins/dw-twitter-base/include/widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; DwTwWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=my-unique-identifier
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/options-general.php?page=my-unique-identifier
- > Notice in wp-content/plugins/dw-twitter-base/twitter-base.php+289
Undefined variable: help_tabs
- > GET request to /wp-admin/options-general.php?page=my-unique-identifier
- > Warning in wp-content/plugins/dw-twitter-base/twitter-base.php+289
count(): Parameter must be an array or an object that implements Countable
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dw-twitter-base/include/shortcode.php
- > /wp-content/plugins/dw-twitter-base/twitter-base.php
- > /wp-content/plugins/dw-twitter-base/include/widget.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'config.php' (include_path='.:/usr/share/php') in wp-content/plugins/dw-twitter-base/lib/callback.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'config.php' (include_path='.:/usr/share/php') in wp-content/plugins/dw-twitter-base/lib/redirect.php on line 6
- > PHP Warning
require_once(config.php): failed to open stream: No such file or directory in wp-content/plugins/dw-twitter-base/lib/redirect.php on line 6
- > PHP Warning
require_once(config.php): failed to open stream: No such file or directory in wp-content/plugins/dw-twitter-base/lib/index.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'config.php' (include_path='.:/usr/share/php') in wp-content/plugins/dw-twitter-base/lib/index.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'config.php' (include_path='.:/usr/share/php') in wp-content/plugins/dw-twitter-base/lib/connect.php on line 11
- > PHP Warning
require_once(config.php): failed to open stream: No such file or directory in wp-content/plugins/dw-twitter-base/lib/connect.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'config.php' (include_path='.:/usr/share/php') in wp-content/plugins/dw-twitter-base/lib/connect.php on line 11
- > PHP Warning
require_once(config.php): failed to open stream: No such file or directory in wp-content/plugins/dw-twitter-base/lib/callback.php on line 11
- > PHP Warning
require_once(config.php): failed to open stream: No such file or directory in wp-content/plugins/dw-twitter-base/lib/connect.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: mo, widget, shortcode, plugin, twitter...
dw-twitter-base/twitter-base.php 85% from 13 tests
"Twitter Base" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dw-twitter-base.php" instead of "twitter-base.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,500 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 315 | 438 | 1,153 |
PO File | 2 | 50 | 110 | 146 |
CSS | 3 | 22 | 1 | 106 |
Markdown | 1 | 37 | 0 | 78 |
JavaScript | 1 | 5 | 4 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 10 | 12.50% |
▷ Public methods | 69 | 86.25% |
▷ Protected methods | 2 | 2.50% |
▷ Private methods | 9 | 11.25% |
Functions | 17 | |
▷ Named functions | 14 | 82.35% |
▷ Anonymous functions | 3 | 17.65% |
Constants | 10 | |
▷ Global constants | 10 | 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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/twitter-share.png | 0.68KB | 0.68KB | 0.00% |
css/twitter_button.png | 1.07KB | 0.78KB | ▼ 26.94% |
img/google_support.png | 0.74KB | 0.66KB | ▼ 11.24% |
img/linkedin_support.png | 0.39KB | 0.38KB | ▼ 3.97% |