84% soulmatch

Code Review | SoulMatch

WordPress plugin SoulMatch scored 84% from 54 tests.

About plugin

  • Plugin page: soulmatch
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: Jul 18, 2017
  • Number of updates: 10
  • Update frequency: every 12.1 days
  • Top authors: deployer (60%)gingersoulrecords (50%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,089 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.61ms] Passed 4 tests

Analyzing server-side resources used by SoulMatch
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.74 ▼1.48
Dashboard /wp-admin3.32 ▲0.0251.83 ▼3.87
Posts /wp-admin/edit.php3.44 ▲0.0855.63 ▲0.02
Add New Post /wp-admin/post-new.php5.90 ▲0.02100.22 ▼1.12
Media Library /wp-admin/upload.php3.25 ▲0.0236.83 ▲1.27
SoulMatch /wp-admin/options-general.php?page=soulmatch-settings3.2238.27

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for SoulMatch
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲9313.99 ▲0.657.23 ▲5.6045.22 ▲3.03
Dashboard /wp-admin2,207 ▲45.88 ▲1.07100.45 ▼19.4540.62 ▼8.05
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0440.48 ▼0.6335.38 ▼0.07
Add New Post /wp-admin/post-new.php1,546 ▲1318.14 ▼5.09605.49 ▼85.2958.16 ▲6.92
Media Library /wp-admin/upload.php1,386 ▲44.20 ▼0.0295.86 ▼2.4441.74 ▼1.52
SoulMatch /wp-admin/options-general.php?page=soulmatch-settings8702.0527.0226.18

Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/soulmatch/soulmatch.php:13

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: equal height, match height, equalize height

soulmatch/soulmatch.php Passed 13 tests

The entry point to "SoulMatch" version 0.1.2 is a PHP file that has certain tags in its header comment area
41 characters long description:
Equalize the heights of grouped elements.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected464 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP22425407
JavaScript33950
CSS2227

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity17.50
▷ Minimum class complexity3.00
▷ Maximum class complexity32.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods628.57%
▷ Public methods1257.14%
▷ Protected methods00.00%
▷ Private methods942.86%
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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png50.64KB20.37KB▼ 59.77%