78% easyme-connect

Code Review | EasyMe Connect

WordPress plugin EasyMe Connect scored78%from 54 tests.

About plugin

  • Plugin page: easyme-connect
  • Plugin version: 3.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2017
  • Latest release: Jul 27, 2023
  • Number of updates: 58
  • Update frequency: every 39.5 days
  • Top authors: easymebiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /9,000 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
Installer ran successfully

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

This is a short check of server-side resources used by EasyMe Connect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.80 ▼4.32
Dashboard /wp-admin3.33 ▲0.0345.26 ▼1.10
Posts /wp-admin/edit.php3.38 ▲0.0249.28 ▲1.26
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.83 ▲6.90
Media Library /wp-admin/upload.php3.25 ▲0.0237.76 ▲1.39
EasyMe /wp-admin/admin.php?page=easyme3.2633.22
Access control /wp-admin/admin.php?page=easyme-settings3.2735.68
Other /wp-admin/admin.php?page=easyme-settings-etc3.2534.33

Server storage [IO: ▲0.07MB] [DB: ▲0.08MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
easyme_connect_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for EasyMe Connect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲15413.39 ▼0.902.04 ▲0.3643.35 ▼4.90
Dashboard /wp-admin2,269 ▲785.03 ▲0.14110.33 ▲3.6840.89 ▼6.38
Posts /wp-admin/edit.php2,156 ▲672.30 ▲0.2940.28 ▼0.3837.93 ▲4.80
Add New Post /wp-admin/post-new.php1,557 ▲1517.67 ▼0.71672.13 ▲18.4757.95 ▲1.25
Media Library /wp-admin/upload.php1,451 ▲604.49 ▲0.3097.26 ▼8.0341.87 ▼2.20
EasyMe /wp-admin/admin.php?page=easyme8512.1529.8925.46
Access control /wp-admin/admin.php?page=easyme-settings1,8808.36181.0969.70
Other /wp-admin/admin.php?page=easyme-settings-etc8762.1527.5923.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/easyme-connect/html/message.php
  • 36× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easyme-connect/html/auth-metabox.php:63
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easyme-connect/html/auth-metabox.php on line 9
    • > PHP Notice
      Undefined variable: _page in wp-content/plugins/easyme-connect/html/auth-metabox.php on line 28
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easyme-connect/html/auth-metabox.php on line 4
    • > PHP Notice
      Undefined variable: _page in wp-content/plugins/easyme-connect/html/auth-metabox.php on line 9
    • > PHP Warning
      array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/easyme-connect/html/dashboard-widget.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easyme-connect/html/auth-metabox.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easyme-connect/html/etc-settings.php:6
    • > PHP Notice
      Undefined variable: _page in wp-content/plugins/easyme-connect/html/dashboard-widget.php on line 7
    • > PHP Notice
      Undefined variable: _page in wp-content/plugins/easyme-connect/html/message.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: online courses, easyme, events, subscriptions, booking

easyme-connect/easyme.php 77% from 13 tests

The main PHP script in "EasyMe Connect" version 3.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("easyme-connect.php" instead of "easyme.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("7.0" instead of "5.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,303 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11470431,111
PO File15761128
JavaScript319154
CSS1006
SVG1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity54.33
▷ Minimum class complexity26.00
▷ Maximum class complexity70.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods79
▷ Static methods6582.28%
▷ Public methods5569.62%
▷ Protected methods00.00%
▷ Private methods2430.38%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants10
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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