88% extra-styling-for-memberpress

Code Review | Extra Styling for MemberPress

WordPress plugin Extra Styling for MemberPress scored 88% from 54 tests.

About plugin

  • Plugin page: extra-styling-for...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8.1
  • WordPress version: 5.8.1
  • First release: May 18, 2020
  • Latest release: Oct 4, 2021
  • Number of updates: 24
  • Update frequency: every 21.1 days
  • Top authors: readysteadywebsites (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 2,339 total downloads

Benchmarks

Plugin footprint Passed 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: ▼140.62ms] 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.04 ▲0.3133.58 ▲12.49
Dashboard /wp-admin3.26 ▲0.2039.71 ▼3.58
Posts /wp-admin/edit.php3.37 ▲0.2644.29 ▲3.40
Add New Post /wp-admin/post-new.php5.62 ▲0.1888.71 ▼565.21
Media Library /wp-admin/upload.php3.20 ▲0.2036.51 ▲2.90

Server storage [IO: ▲0.11MB] [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, no new options

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 /3,756 ▲16015.98 ▲0.259.49 ▼2.4352.52 ▲4.91
Dashboard /wp-admin3,020 ▲895.92 ▼0.29132.86 ▼18.12127.92 ▲14.90
Posts /wp-admin/edit.php2,780 ▲412.85 ▲0.1369.96 ▲8.97115.54 ▲27.00
Add New Post /wp-admin/post-new.php1,698 ▼17418.86 ▼0.33370.78 ▼12.23113.56 ▲7.95
Media Library /wp-admin/upload.php1,851 ▲445.03 ▼0.02149.39 ▲8.14143.68 ▲25.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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: 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_action() in wp-content/plugins/extra-styling-for-memberpress/customizer/rswmpstyling-customizer.php:853
    • > 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, memberpress, css, styling, readsteadywebsites...

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

"Extra Styling for MemberPress" version 1.0.7'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:
  • 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")
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
  • 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,682 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP173636191,463
PO File1335482
CSS2143265
Markdown122046
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