78% wp-easy-member-neo

Code Review | wp-Easy Member Neo

WordPress plugin wp-Easy Member Neo scored78%from 54 tests.

About plugin

  • Plugin page: wp-easy-member-neo
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Apr 19, 2017
  • Latest release: Aug 29, 2018
  • Number of updates: 9
  • Update frequency: every 82.2 days
  • Top authors: Michael D Price (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,499 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.36ms] Passed 4 tests

Server-side resources used by wp-Easy Member Neo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.13 ▼1.42
Dashboard /wp-admin3.31 ▲0.0044.26 ▼8.31
Posts /wp-admin/edit.php3.36 ▲0.0042.56 ▼10.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.01 ▼0.97
Media Library /wp-admin/upload.php3.23 ▲0.0035.80 ▲0.59

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
wp_wpemp_ver
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
wpemp_show_powered

Browser metrics Passed 4 tests

wp-Easy Member Neo: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.141.57 ▼0.1643.71 ▲0.25
Dashboard /wp-admin2,203 ▲155.79 ▲0.8895.38 ▼19.4937.73 ▼6.14
Posts /wp-admin/edit.php2,089 ▲32.03 ▲0.0033.61 ▼3.7333.19 ▲0.33
Add New Post /wp-admin/post-new.php1,537 ▲323.41 ▲0.24596.52 ▼94.0952.24 ▼0.82
Media Library /wp-admin/upload.php1,379 ▼124.16 ▼0.0096.53 ▼6.0840.91 ▼4.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • wpemp_show_powered
    • can_compress_scripts
    • widget_recent-comments
    • wp_wpemp_ver
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-easy-member-neo/wpemn_comments.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to get property 'profile' of non-object in wp-content/plugins/wp-easy-member-neo/inc/profile.php on line 2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/wp-easy-member-neo/inc/profile.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Example in website), #2 (Example in admin)
You can look at the official readme.txt

wp-easy-member-neo/wp-EasyMemberNeo.php 92% from 13 tests

"wp-Easy Member Neo" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-easy-member-neo.php" instead of "wp-EasyMemberNeo.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 detected1,257 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP41971421,193
JavaScript10052
CSS10012

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity181.00
▷ Minimum class complexity181.00
▷ Maximum class complexity181.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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