Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/twitter-mentions-as-comments/includes/boilerplate/class.plugin-boilerplate.php+50
A non-numeric value encountered
Server metrics [RAM: ▼1.62MB] [CPU: ▼54.69ms] Passed 4 tests
An overview of server-side resources used by Twitter Mentions As Comments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.10 | 7.37 ▼37.98 |
Dashboard /wp-admin | 2.39 ▼0.92 | 8.19 ▼50.24 |
Posts /wp-admin/edit.php | 2.39 ▼0.97 | 9.44 ▼43.84 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.50 | 8.75 ▼86.69 |
Media Library /wp-admin/upload.php | 2.39 ▼0.84 | 7.41 ▼33.41 |
Twitter -> Comments /wp-admin/options-general.php?page=tmac_options | 2.39 | 7.02 |
Server storage [IO: ▲0.42MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
twitter_mentions_as_comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Twitter Mentions As Comments: 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,807 ▲46 | 14.14 ▼0.04 | 1.55 ▼0.19 | 40.25 ▼4.29 |
Dashboard /wp-admin | 2,213 ▲33 | 5.67 ▲0.00 | 86.94 ▼10.54 | 40.90 ▼1.80 |
Posts /wp-admin/edit.php | 2,122 ▲25 | 2.00 ▲0.04 | 38.56 ▲1.83 | 34.43 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.53 ▲0.17 | 627.72 ▼69.02 | 51.50 ▼8.12 |
Media Library /wp-admin/upload.php | 1,421 ▲27 | 4.19 ▲0.02 | 101.47 ▼0.07 | 43.46 ▼2.44 |
Twitter -> Comments /wp-admin/options-general.php?page=tmac_options | 1,006 | 2.20 | 32.83 | 30.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/twitter-mentions-as-comments/includes/boilerplate/class.plugin-boilerplate.php+50
A non-numeric value encountered
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- twitter_mentions_as_comments
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
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=tmac_options
- > Warning in wp-content/plugins/twitter-mentions-as-comments/includes/boilerplate/class.plugin-boilerplate.php+50
A non-numeric value encountered
- > GET request to /wp-admin/options-general.php?page=tmac_options
- > Notice in wp-content/plugins/twitter-mentions-as-comments/includes/boilerplate/class.plugin-boilerplate.php+50
A non well formed numeric value encountered
- > GET request to /wp-admin/options-general.php?page=tmac_options
- > User notice in wp-content/plugins/twitter-mentions-as-comments/includes/boilerplate/class.plugin-boilerplate.php+111
Twitter Mentions as Comments -- Unable to load class Twitter_Mentions_As_Comments_Codebird. see the readme for class and file naming conventions
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/twitter-mentions-as-comments/cron.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-mentions-as-comments/includes/tlc-transients/tlc-transients.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-mentions-as-comments/includes/tlc-transients/tlc-transients.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/twitter-mentions-as-comments/templates/sample-options.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/twitter-mentions-as-comments/templates/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/twitter-mentions-as-comments/templates/upgrade-wp.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/twitter-mentions-as-comments/templates/donate.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/twitter-mentions-as-comments/templates/forced-refresh.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: twitter, comments, social, mentions, social media
twitter-mentions-as-comments/twitter-mentions-as-comments.php Passed 13 tests
"Twitter Mentions As Comments" version 1.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Queries the Twitter API on a regular basis for tweets about your posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,663 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 683 | 1,083 | 1,747 |
HTML | 1 | 123 | 0 | 571 |
Markdown | 6 | 65 | 0 | 210 |
PO File | 1 | 35 | 37 | 96 |
JavaScript | 2 | 7 | 2 | 26 |
CoffeeScript | 1 | 5 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.27 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 3 | 2.29% |
▷ Public methods | 115 | 87.79% |
▷ Protected methods | 8 | 6.11% |
▷ Private methods | 8 | 6.11% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin