90% segmetrics-membermouse

Code Review | SegMetrics MemberMouse Add-On

WordPress plugin SegMetrics MemberMouse Add-On scored90%from 54 tests.

About plugin

  • Plugin page: segmetrics-member...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.2
  • WordPress version: 6.3.1
  • First release: Aug 4, 2021
  • Latest release: Jan 3, 2022
  • Number of updates: 3
  • Update frequency: every 166.7 days
  • Top authors: segmetrics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /369 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.12ms] Passed 4 tests

This is a short check of server-side resources used by SegMetrics MemberMouse Add-On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.68 ▲1.14
Dashboard /wp-admin3.31 ▼0.0444.46 ▼15.34
Posts /wp-admin/edit.php3.36 ▲0.0047.74 ▲4.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0076.96 ▼24.47
Media Library /wp-admin/upload.php3.23 ▲0.0035.63 ▲2.19

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SegMetrics MemberMouse Add-On
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.42 ▼0.131.86 ▲0.1147.55 ▲7.06
Dashboard /wp-admin2,189 ▲125.62 ▲0.0797.44 ▲7.8744.53 ▲2.51
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0437.21 ▲2.5932.36 ▼6.47
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▲0.12676.20 ▲11.5968.53 ▲12.69
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.01111.50 ▲13.3647.42 ▲3.55

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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 require attention: You can look at the official readme.txt

segmetrics-membermouse/segmetrics-membermouse.php Passed 13 tests

The main file in "SegMetrics MemberMouse Add-On" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
43 characters long description:
Connect SegMetrics to your MemberMouse data

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
Good job! No executable or dangerous file extensions detected328 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11140512328

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.12
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods1864.29%
▷ Protected methods00.00%
▷ Private methods1035.71%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin