84% db-twitter

Code Review | DB - Twitter

WordPress plugin DB - Twitter scored84%from 54 tests.

About plugin

  • Plugin page: db-twitter
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2015
  • Latest release: May 10, 2016
  • Number of updates: 6
  • Update frequency: every 28.8 days
  • Top authors: alexvandervegt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /651 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2743.50 ▲5.28
Dashboard /wp-admin3.61 ▲0.2645.09 ▼15.20
Posts /wp-admin/edit.php3.66 ▲0.3048.07 ▲1.58
Add New Post /wp-admin/post-new.php6.12 ▲0.2391.40 ▼12.09
Media Library /wp-admin/upload.php3.46 ▲0.2338.35 ▲5.69
Settings /wp-admin/admin.php?page=dbt&tab=settings_tab3.4336.13
Tweets /wp-admin/edit.php?post_type=tweet3.5135.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11413.19 ▼1.084.47 ▲2.6538.68 ▼1.68
Dashboard /wp-admin2,227 ▲395.85 ▲0.95101.71 ▼9.3040.02 ▼2.47
Posts /wp-admin/edit.php2,113 ▲212.04 ▲0.0340.20 ▼1.9635.09 ▼2.47
Add New Post /wp-admin/post-new.php1,541 ▲823.20 ▼0.05682.98 ▲45.7761.29 ▲0.07
Media Library /wp-admin/upload.php1,415 ▲304.26 ▲0.0895.08 ▼5.9342.65 ▲1.40
Settings /wp-admin/admin.php?page=dbt&tab=settings_tab9012.0329.3125.48
Tweets /wp-admin/edit.php?post_type=tweet1,0741.9835.3231.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP19536582935

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 code0.23
Average class complexity7.14
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods85
▷ Static methods910.59%
▷ Public methods6576.47%
▷ Protected methods00.00%
▷ Private methods2023.53%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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