72% wp-meetup-login

Code Review | Meetup Login

WordPress plugin Meetup Login scored72%from 54 tests.

About plugin

  • Plugin page: wp-meetup-login
  • Plugin version: 0.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: Oct 23, 2017
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: arbet01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /680 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.05MB] [CPU: ▼15.98ms] Passed 4 tests

This is a short check of server-side resources used by Meetup Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1027.36 ▼16.49
Dashboard /wp-admin3.30 ▲0.0032.80 ▼14.67
Posts /wp-admin/edit.php3.37 ▲0.0237.29 ▼12.39
Add New Post /wp-admin/post-new.php5.57 ▼0.3271.77 ▼20.37
Media Library /wp-admin/upload.php3.31 ▲0.0829.55 ▼6.18
Meetup Login /wp-admin/options-general.php?page=tte_mup_settings3.2827.73

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Meetup Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲6313.19 ▼1.181.60 ▼0.2942.17 ▼5.61
Dashboard /wp-admin2,202 ▲175.76 ▼0.1498.50 ▼5.7837.29 ▼5.66
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0239.95 ▲1.2137.09 ▲3.61
Add New Post /wp-admin/post-new.php1,537 ▲322.16 ▼1.07679.85 ▲5.8856.32 ▲2.63
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0598.47 ▼9.2042.36 ▼2.84
Meetup Login /wp-admin/options-general.php?page=tte_mup_settings9142.0323.3325.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tte_mup_settings
    • > Notice in wp-content/plugins/wp-meetup-login/includes/lib/class-tte-oauth-mods.php+48
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-meetup-login/meetup-login.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Meetup\\plugins_url() in wp-content/plugins/wp-meetup-login/includes/conf/meetup.conf.php:60

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: meetup-api, social-login, meetup

wp-meetup-login/meetup-login.php 77% from 13 tests

"Meetup Login" version 0.9.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-meetup-login.php" instead of "meetup-login.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
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected520 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6304278520

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 code0.31
Average class complexity12.17
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods35
▷ Static methods12.86%
▷ Public methods2880.00%
▷ Protected methods00.00%
▷ Private methods720.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/img/linkedin.png1.00KB0.92KB▼ 7.84%
includes/assets/img/oauth-button.png3.83KB2.19KB▼ 42.82%