63% meetup

Code Review | Meetup

WordPress plugin Meetup scored63%from 54 tests.

About plugin

  • Plugin page: meetup
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4
  • WordPress version: 6.3.1
  • First release: Jun 26, 2014
  • Latest release: Mar 14, 2020
  • Number of updates: 8
  • Update frequency: every 261.3 days
  • Top authors: tareq1988 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

20+ active /4,673 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼9.90ms] Passed 4 tests

This is a short check of server-side resources used by Meetup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1743.94 ▲3.13
Dashboard /wp-admin4.01 ▲0.6753.57 ▼8.11
Posts /wp-admin/edit.php4.10 ▲0.7451.28 ▼1.49
Add New Post /wp-admin/post-new.php5.82 ▼0.0762.14 ▼33.14
Media Library /wp-admin/upload.php3.91 ▲0.6841.72 ▲6.91
All Meetups /wp-admin/edit.php?post_type=meetup3.9843.63
Create New /wp-admin/post-new.php?post_type=meetup3.9144.24
Settings /wp-admin/edit.php?post_type=meetup&page=meetup-settings3.9552.57

Server storage [IO: ▲1.05MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 134 new files
Database: 1 new table, 8 new options
New tables
wp_meetup_users
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
meetup_email
widget_theysaidso_widget
meetup_facebook
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Meetup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,981 ▲22015.10 ▲1.071.79 ▲0.2344.00 ▲5.75
Dashboard /wp-admin2,387 ▲2096.39 ▲0.77119.62 ▲13.2640.14 ▼1.75
Posts /wp-admin/edit.php2,315 ▲2153.51 ▲1.4951.02 ▲12.3730.62 ▼7.04
Add New Post /wp-admin/post-new.php1,583 ▲4423.42 ▲0.35619.93 ▲17.0833.43 ▼20.14
Media Library /wp-admin/upload.php1,452 ▲614.32 ▲0.1186.47 ▼10.5043.02 ▲0.73
All Meetups /wp-admin/edit.php?post_type=meetup1,2923.5349.2625.65
Create New /wp-admin/post-new.php?post_type=meetup4,3888.16232.4280.65
Settings /wp-admin/edit.php?post_type=meetup&page=meetup-settings1,5376.81141.9637.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_meetup_users
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • meetup_facebook
    • widget_recent-posts
    • theysaidso_admin_options
    • meetup_email
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=meetup
    • > User deprecated in wp-includes/functions.php+5828
    Hook dbx_post_advanced is deprecated since version 3.7.0! Use add_meta_boxes instead.

SRP 0% 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
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/meetup/includes/email/footer.php
    • > /wp-content/plugins/meetup/includes/email/header.php
  • 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/meetup/lib/Custom-Meta-Boxes/example-functions.php:104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/meetup/templates/meetup-speakers.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/meetup/templates/meetup-sponsors.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meetup/lib/Custom-Meta-Boxes/classes.fields.php:581
    • > PHP Warning
      require_once(MEETUP_PATH/lib/class.settings-api.php): failed to open stream: No such file or directory in wp-content/plugins/meetup/includes/admin/settings.php on line 13
    • > PHP Warning
      Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/meetup/lib/Custom-Meta-Boxes/custom-meta-boxes.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meetup/includes/booking.php:246
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/meetup/lib/Custom-Meta-Boxes/tests/testGroupField.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_id() in wp-content/plugins/meetup/templates/meetup-content.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/meetup/templates/meetup-header.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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
9 plugin tags: meetup, seminar, meeting, conference, venue...

meetup/meetup.php Passed 13 tests

The entry point to "Meetup" version 0.1 is a PHP file that has certain tags in its header comment area
20 characters long description:
Create meetup events

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin11,450 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
PHP321,5151,0673,912
CSS172651383,371
JavaScript327085432,732
LESS313313690
SVG200433
Markdown347098
Bourne Shell226372
JSON30065
PO File2162063
XML10014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.97
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes13.33%
▷ Concrete classes2996.67%
▷ Final classes00.00%
Methods166
▷ Static methods31.81%
▷ Public methods16297.59%
▷ Protected methods10.60%
▷ Private methods31.81%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/Custom-Meta-Boxes/js/select2/select2x2.png0.83KB0.77KB▼ 6.15%
lib/Custom-Meta-Boxes/css/vendor/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
lib/Custom-Meta-Boxes/css/vendor/jquery-ui/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
lib/Custom-Meta-Boxes/css/vendor/jquery-ui/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
lib/Custom-Meta-Boxes/css/vendor/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%