Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.38ms] Passed 4 tests
A check of server-side resources used by Comment by Tweet
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.98 ▼1.31 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.41 ▲3.69 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 46.98 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 94.42 ▼4.51 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.15 ▼0.63 |
Comment by Tweet API /wp-admin/tools.php?page=comment-by-tweet-api | 3.23 | 28.30 |
Comment by Tweet /wp-admin/options-general.php?page=comment-by-tweet | 3.27 | 33.77 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_cbt_api |
wp_cbt_tweets |
wp_cbt_hash |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Comment by Tweet: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲223 | 13.99 ▼0.32 | 21.80 ▲20.15 | 43.23 ▲2.39 |
Dashboard /wp-admin | 2,216 ▲27 | 4.89 ▼0.06 | 103.58 ▼13.37 | 37.53 ▼6.44 |
Posts /wp-admin/edit.php | 2,099 ▲13 | 2.06 ▲0.06 | 36.15 ▼2.54 | 36.52 ▲2.18 |
Add New Post /wp-admin/post-new.php | 6,508 ▲4,966 | 20.51 ▲2.06 | 884.78 ▲292.66 | 60.13 ▲2.77 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.26 ▲0.09 | 98.60 ▲1.77 | 43.08 ▼4.92 |
Comment by Tweet API /wp-admin/tools.php?page=comment-by-tweet-api | 755 | 2.02 | 23.86 | 29.33 |
Comment by Tweet /wp-admin/options-general.php?page=comment-by-tweet | 913 | 2.18 | 23.78 | 27.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
The following issues need your attention
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/comment-by-tweet/templates/config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/comment-by-tweet/templates/info.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/comment-by-tweet/templates/info.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/comment-by-tweet/API.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-by-tweet/Tools.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/comment-by-tweet/templates/info.php on line 5
- > PHP Notice
Undefined variable: userData in wp-content/plugins/comment-by-tweet/templates/info.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/comment-by-tweet/templates/info.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/comment-by-tweet/templates/info.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-by-tweet/Admin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: twitter, comment
comment-by-tweet/comment-by-tweet.php Passed 13 tests
"Comment by Tweet" version 0.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Système de commentaires basé sur les hashtags Twitter
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,490 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 247 | 404 | 1,305 |
JavaScript | 3 | 12 | 7 | 79 |
Markdown | 1 | 23 | 0 | 50 |
CSS | 2 | 9 | 19 | 44 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 33.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 2 | 2.90% |
▷ Public methods | 46 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/select.png | 6.71KB | 4.57KB | ▼ 31.81% |