90% front-end-pm-ultimate-member-integration

Code Review | Front End PM - Ultimate Member Integration

WordPress plugin Front End PM - Ultimate Member Integration scored90%from 54 tests.

About plugin

  • Plugin page: front-end-pm-ulti...
  • Plugin version: 1.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2018
  • Latest release: May 31, 2019
  • Number of updates: 11
  • Update frequency: every 41.7 days
  • Top authors: shamim51 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /9,118 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Front End PM - Ultimate Member Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.33 ▲0.11
Dashboard /wp-admin3.33 ▲0.0346.15 ▼9.65
Posts /wp-admin/edit.php3.38 ▲0.0248.31 ▼6.30
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.63 ▼7.16
Media Library /wp-admin/upload.php3.25 ▲0.0241.03 ▲2.32

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Front End PM - Ultimate Member Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.61 ▼0.641.75 ▼0.5242.98 ▼2.99
Dashboard /wp-admin2,213 ▲224.83 ▼0.03103.05 ▼7.1047.59 ▲7.87
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0636.30 ▼4.8933.98 ▼1.49
Add New Post /wp-admin/post-new.php1,541 ▲2123.20 ▲0.13653.02 ▼35.3255.59 ▼0.47
Media Library /wp-admin/upload.php1,395 ▲44.25 ▲0.02104.89 ▲4.2245.05 ▼0.80

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

front-end-pm-ultimate-member-integration/front-end-pm-ultimate-member-integration.php Passed 13 tests

"Front End PM - Ultimate Member Integration" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Front End PM extension to integrate with Ultimate Member

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin111 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23619111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods964.29%
▷ Protected methods00.00%
▷ Private methods535.71%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin