10% r3df-meetup-widget

Code Review | R3DF Meetup Widget

WordPress plugin R3DF Meetup Widget scored10%from 54 tests.

About plugin

  • Plugin page: r3df-meetup-widget
  • Plugin version: 1.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Sep 12, 2012
  • Latest release: Sep 30, 2015
  • Number of updates: 68
  • Update frequency: every 16.4 days
  • Top authors: r3df (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /4,011 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/r3df-meetup-widget/r3df-meetup-widget.php+37
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼60.72ms] Passed 4 tests

Server-side resources used by R3DF Meetup Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.20 ▼36.81
Dashboard /wp-admin2.10 ▼1.246.64 ▼56.59
Posts /wp-admin/edit.php2.10 ▼1.256.31 ▼43.30
Add New Post /wp-admin/post-new.php2.10 ▼3.796.14 ▼106.18
Media Library /wp-admin/upload.php2.10 ▼1.136.01 ▼32.71

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_r3dfmeetup
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for R3DF Meetup Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.21 ▼0.071.82 ▼0.1544.44 ▲0.38
Dashboard /wp-admin2,195 ▲185.63 ▼0.0294.61 ▲5.3140.01 ▼3.24
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0534.79 ▼0.0335.84 ▼2.02
Add New Post /wp-admin/post-new.php1,526 ▼1223.35 ▲0.31622.15 ▼30.0459.69 ▲10.69
Media Library /wp-admin/upload.php1,403 ▲64.28 ▲0.09100.45 ▲0.0344.01 ▼4.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/r3df-meetup-widget/r3df-meetup-widget.php+37
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/r3df-meetup-widget/r3df-meetup-widget.php:37

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (The widget admin.), #2 (The widget on the site.)
The official readme.txt might help

r3df-meetup-widget/r3df-meetup-widget.php Passed 13 tests

"R3DF Meetup Widget" version 1.0.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
38 characters long description:
Displays meetup group link in a widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected198 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33685121
PO File1111243
CSS10034

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/meetup_logo_49.png3.53KB1.88KB▼ 46.73%
screenshot-1.png51.96KB21.00KB▼ 59.59%
screenshot-2.png16.64KB7.77KB▼ 53.31%