Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼5.11ms] Passed 4 tests
A check of server-side resources used by DB - Twitter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 43.50 ▲5.28 |
Dashboard /wp-admin | 3.61 ▲0.26 | 45.09 ▼15.20 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 48.07 ▲1.58 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 91.40 ▼12.09 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.35 ▲5.69 |
Settings /wp-admin/admin.php?page=dbt&tab=settings_tab | 3.43 | 36.13 |
Tweets /wp-admin/edit.php?post_type=tweet | 3.51 | 35.22 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
dbt_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DB - Twitter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 13.19 ▼1.08 | 4.47 ▲2.65 | 38.68 ▼1.68 |
Dashboard /wp-admin | 2,227 ▲39 | 5.85 ▲0.95 | 101.71 ▼9.30 | 40.02 ▼2.47 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.04 ▲0.03 | 40.20 ▼1.96 | 35.09 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.20 ▼0.05 | 682.98 ▲45.77 | 61.29 ▲0.07 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.26 ▲0.08 | 95.08 ▼5.93 | 42.65 ▲1.40 |
Settings /wp-admin/admin.php?page=dbt&tab=settings_tab | 901 | 2.03 | 29.31 | 25.48 |
Tweets /wp-admin/edit.php?post_type=tweet | 1,074 | 1.98 | 35.32 | 31.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- dbt_settings
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/db-twitter/admin/partials/dbt-meta-box-display.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/db-twitter/admin/partials/dbt-admin-display.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: twitter, tweets
db-twitter/dbt.php 85% from 13 tests
Analyzing the main PHP file in "DB - Twitter" version 1.0.2
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("db-twitter.php" instead of "dbt.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin935 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 536 | 582 | 935 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 9 | 10.59% |
▷ Public methods | 65 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 23.53% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin