Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.79ms] Passed 4 tests
Analyzing server-side resources used by MM Twitter Connection
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.83 ▼3.17 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.99 ▼3.33 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 52.77 ▲1.70 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 94.31 ▼6.35 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 42.60 ▲2.63 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by MM Twitter Connection
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.25 ▼0.07 | 1.73 ▼0.12 | 40.96 ▼0.07 |
Dashboard /wp-admin | 2,195 ▲18 | 5.66 ▲0.00 | 99.01 ▲5.94 | 42.67 ▲0.99 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.01 | 40.96 ▲5.25 | 36.82 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.71 ▲0.67 | 621.29 ▼153.04 | 49.38 ▼5.88 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.24 ▲0.05 | 98.04 ▼5.12 | 41.95 ▼5.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mm-twitter-connect/mm-twitter-connect.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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: social login, twitter signup, twitter, signup, twitter connect
mm-twitter-connect/mm-twitter-connect.php 92% from 13 tests
Analyzing the main PHP file in "MM Twitter Connection" version 1...
The following require your attention:
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin915 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 181 | 334 | 915 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 9 | 21.43% |
▷ Public methods | 20 | 47.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 52.38% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin