78% extra-styling-for-memberpress

Code Review | Extra Styling for MemberPress

WordPress plugin Extra Styling for MemberPress scored78%from 54 tests.

About plugin

  • Plugin page: extra-styling-for...
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3.2
  • WordPress version: 6.3.1
  • First release: May 18, 2020
  • Latest release: Oct 16, 2023
  • Number of updates: 33
  • Update frequency: every 37.9 days
  • Top authors: readysteadywebsites (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /5,318 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▼0.15ms] Passed 4 tests

A check of server-side resources used by Extra Styling for MemberPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2343.05 ▲4.48
Dashboard /wp-admin3.51 ▲0.2046.21 ▼0.50
Posts /wp-admin/edit.php3.62 ▲0.2645.14 ▼1.12
Add New Post /wp-admin/post-new.php6.09 ▲0.2081.89 ▼3.44
Media Library /wp-admin/upload.php3.43 ▲0.2036.54 ▲5.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Extra Styling for MemberPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8714.26 ▼0.312.00 ▲0.3344.61 ▲3.70
Dashboard /wp-admin2,226 ▲455.56 ▼0.0682.57 ▼14.2647.18 ▲6.56
Posts /wp-admin/edit.php2,131 ▲312.13 ▲0.1435.76 ▼4.4942.59 ▲3.06
Add New Post /wp-admin/post-new.php1,552 ▲2623.27 ▲0.16648.70 ▼40.1455.95 ▲3.23
Media Library /wp-admin/upload.php1,434 ▲374.20 ▼0.1997.97 ▼12.8452.44 ▲6.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% 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 0% 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 take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/extra-styling-for-memberpress/public/partials/rswmpstyling-public-display.php
    • > /wp-content/plugins/extra-styling-for-memberpress/admin/partials/rswmpstyling-admin-display.php
  • 4× 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/extra-styling-for-memberpress/customizer/rswmpstyling-customizer.php:853
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/extra-styling-for-memberpress/customizer/inc/class-customizer-range-value-control/class-customizer-range-value-control.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extra-styling-for-memberpress/customizer/rswmpstyling-customizer-css.php:668
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/extra-styling-for-memberpress/public/inc-rswmpstyling-public-styles.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: registration, customizer, styling, readsteadywebsites, sign up...

extra-styling-for-memberpress/rswmpstyling.php 77% from 13 tests

"Extra Styling for MemberPress" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("extra-styling-for-memberpress.php" instead of "rswmpstyling.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,689 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP173636191,463
PO File1335482
CSS2153268
Markdown124050
JavaScript293226

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.44
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.15
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2177.78%
▷ Protected methods00.00%
▷ Private methods622.22%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin