84% mm-twitter-connect

Code Review | MM Twitter Connection

WordPress plugin MM Twitter Connection scored84%from 54 tests.

About plugin

  • Plugin page: mm-twitter-connect
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Nov 19, 2015
  • Number of updates: 5
  • Update frequency: every 6.0 days
  • Top authors: rodtech (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /734 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.83 ▼3.17
Dashboard /wp-admin3.37 ▲0.0748.99 ▼3.33
Posts /wp-admin/edit.php3.42 ▲0.0752.77 ▲1.70
Add New Post /wp-admin/post-new.php5.95 ▲0.0794.31 ▼6.35
Media Library /wp-admin/upload.php3.30 ▲0.0742.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▼0.071.73 ▼0.1240.96 ▼0.07
Dashboard /wp-admin2,195 ▲185.66 ▲0.0099.01 ▲5.9442.67 ▲0.99
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0140.96 ▲5.2536.82 ▲2.22
Add New Post /wp-admin/post-new.php1,526 ▼223.71 ▲0.67621.29 ▼153.0449.38 ▼5.88
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0598.04 ▼5.1241.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

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

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 code0.40
Average class complexity59.00
▷ Minimum class complexity38.00
▷ Maximum class complexity80.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods921.43%
▷ Public methods2047.62%
▷ Protected methods00.00%
▷ Private methods2252.38%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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