84% our-members-by-wowprojects

Code Review | Our Members by WOWProjects

WordPress plugin Our Members by WOWProjects scored84%from 54 tests.

About plugin

  • Plugin page: our-members-by-wo...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Oct 3, 2016
  • Latest release: Apr 18, 2018
  • Number of updates: 7
  • Update frequency: every 80.9 days
  • Top authors: XicoOfficial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.06ms] Passed 4 tests

Analyzing server-side resources used by Our Members by WOWProjects
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.21 ▼7.76
Dashboard /wp-admin3.39 ▲0.0853.45 ▼0.87
Posts /wp-admin/edit.php3.44 ▲0.0850.35 ▼3.01
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.52 ▼16.60
Media Library /wp-admin/upload.php3.31 ▲0.0839.78 ▲0.45
All Members /wp-admin/edit.php?post_type=member3.3538.49
Add New /wp-admin/post-new.php?post_type=member3.4652.01
Types of Services /wp-admin/edit-tags.php?taxonomy=types_of_services&post_type=member3.3036.50

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Our Members by WOWProjects
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9013.19 ▼1.194.73 ▲2.9938.32 ▼3.58
Dashboard /wp-admin2,254 ▲515.09 ▲0.03103.26 ▼2.2239.48 ▼7.38
Posts /wp-admin/edit.php2,137 ▲372.02 ▲0.0342.87 ▲2.9433.48 ▼5.85
Add New Post /wp-admin/post-new.php1,555 ▲1517.75 ▼0.46681.67 ▼7.6958.16 ▲2.17
Media Library /wp-admin/upload.php1,434 ▲344.28 ▲0.09102.39 ▼10.0742.44 ▼9.16
All Members /wp-admin/edit.php?post_type=member1,1071.9332.6830.82
Add New /wp-admin/post-new.php?post_type=member2,4577.70168.7065.99
Types of Services /wp-admin/edit-tags.php?taxonomy=types_of_services&post_type=member1,3052.1827.4131.45

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/our-members-by-wowprojects/classes/class-wowprojects-our-members-taxonomy.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/our-members-by-wowprojects/classes/class-wowprojects-our-members-additional-fields.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/our-members-by-wowprojects/classes/class-wowprojects-our-members.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/our-members-by-wowprojects/classes/class-wowprojects-our-members.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/our-members-by-wowprojects/includes/single-member.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: widget, organization members, merbership, members, member category...

our-members-by-wowprojects/wowprojects-our-members.php 92% from 13 tests

The main PHP file in "Our Members by WOWProjects" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("our-members-by-wowprojects.php" instead of "wowprojects-our-members.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected333 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP557103333

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.PNG43.97KB20.67KB▼ 52.99%
assets/screenshot-3.PNG30.01KB14.88KB▼ 50.42%
assets/screenshot-2.PNG29.06KB13.08KB▼ 54.97%