84% support-me

Code Review | Support Me

WordPress plugin Support Me scored84%from 54 tests.

About plugin

  • Plugin page: support-me
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2016
  • Latest release: Dec 22, 2022
  • Number of updates: 27
  • Update frequency: every 86.6 days
  • Top authors: DrewAPicture (96.3%)trustedlogin (7.41%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /9,119 total downloads

Benchmarks

Plugin footprint 83% 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.11MB] [CPU: ▼1.55ms] Passed 4 tests

Analyzing server-side resources used by Support Me
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.25 ▲3.44
Dashboard /wp-admin3.41 ▲0.1147.10 ▼1.20
Posts /wp-admin/edit.php3.53 ▲0.1750.86 ▲8.15
Add New Post /wp-admin/post-new.php5.99 ▲0.1180.64 ▼14.82
Media Library /wp-admin/upload.php3.34 ▲0.1139.52 ▲6.40

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Support Me
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▼0.041.82 ▲0.1938.21 ▼3.18
Dashboard /wp-admin2,195 ▲145.58 ▼0.0793.25 ▼10.0842.98 ▲0.66
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0038.94 ▲0.5839.08 ▲0.82
Add New Post /wp-admin/post-new.php1,528 ▲123.12 ▲0.09682.78 ▲26.7263.43 ▼0.21
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.0196.59 ▼14.6343.24 ▼3.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Support_Me\\Account\\add_filter() in wp-content/plugins/support-me/includes/accounts/wwsm-account-setup.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add a description for screenshot #3 in support-me/assets to your readme.txt
Please take inspiration from this readme.txt

support-me/support-me.php Passed 13 tests

Analyzing the main PHP file in "Support Me" version 1.0.6
77 characters long description:
Allows you to generate temporary user accounts intended for support purposes.

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
Success! There were no dangerous files found in this plugin516 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP695375363
CSS117680
JavaScript124973

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.40
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes240.00%
Methods22
▷ Static methods418.18%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin