72% ehive-access

Code Review | eHive Access

WordPress plugin eHive Access scored72%from 54 tests.

About plugin

  • Plugin page: ehive-access
  • Plugin version: 2.4.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: May 18, 2023
  • Number of updates: 64
  • Update frequency: every 57.8 days
  • Top authors: vernonsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,202 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by eHive Access
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.37 ▼8.87
Dashboard /wp-admin3.33 ▲0.0348.36 ▼14.45
Posts /wp-admin/edit.php3.45 ▲0.0952.89 ▲4.43
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.43 ▼22.29
Media Library /wp-admin/upload.php3.26 ▲0.0338.32 ▲1.28
Api Access /wp-admin/admin.php?page=EHive3.2331.92

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
ehive_access_options
can_compress_scripts

Browser metrics Passed 4 tests

eHive Access: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.39 ▲0.021.69 ▲0.0740.17 ▲0.33
Dashboard /wp-admin2,217 ▲405.59 ▲0.0391.64 ▼10.5272.14 ▲25.87
Posts /wp-admin/edit.php2,119 ▲192.01 ▼0.0141.25 ▼3.7337.07 ▼2.80
Add New Post /wp-admin/post-new.php1,550 ▲2423.54 ▼0.01718.39 ▲42.6253.28 ▲0.29
Media Library /wp-admin/upload.php1,422 ▲224.19 ▼0.02103.87 ▼5.5472.16 ▲22.89
Api Access /wp-admin/admin.php?page=EHive1,0141.6624.8835.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=EHive
    • > Notice in wp-content/plugins/ehive-access/EHiveAccess.php+244
    Undefined index: account_details_page
    • > GET request to /wp-admin/admin.php?page=EHive
    • > Notice in wp-content/plugins/ehive-access/EHiveAccess.php+255
    Undefined index: object_details_page
    • > GET request to /wp-admin/admin.php?page=EHive
    • > Notice in wp-content/plugins/ehive-access/EHiveAccess.php+266
    Undefined index: search_page

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ehive-access/ehive_api_client-php/domain/objectrecordtags/ObjectRecordTagsCollection.php
  • 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require_once(EHIVE_API_ROOT_DIR/domain/objectrecords/ObjectRecord.php): failed to open stream: No such file or directory in wp-content/plugins/ehive-access/ehive_api_client-php/domain/objectrecords/ObjectRecordsCollection.php on line 16
    • > PHP Warning
      require_once(EHIVE_API_ROOT_DIR/domain/objectrecords/MediaSet.php): failed to open stream: No such file or directory in wp-content/plugins/ehive-access/ehive_api_client-php/domain/accounts/Account.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required 'EHIVE_API_ROOT_DIR/domain/objectrecords/MediaSet.php' (include_path='.:/usr/share/php') in wp-content/plugins/ehive-access/ehive_api_client-php/domain/accounts/Account.php on line 17
    • > PHP Warning
      require_once(EHIVE_API_ROOT_DIR/domain/objectrecords/Attribute.php): failed to open stream: No such file or directory in wp-content/plugins/ehive-access/ehive_api_client-php/domain/objectrecords/Media.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required 'EHIVE_API_ROOT_DIR/domain/objectrecords/FieldSet.php' (include_path='.:/usr/share/php') in wp-content/plugins/ehive-access/ehive_api_client-php/domain/objectrecords/ObjectRecord.php on line 16
    • > PHP Warning
      Use of undefined constant EHIVE_API_ROOT_DIR - assumed 'EHIVE_API_ROOT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ehive-access/ehive_api_client-php/domain/communities/CommunitiesCollection.php on line 16
    • > PHP Warning
      require_once(EHIVE_API_ROOT_DIR/domain/objectrecordfiles/FileV3.php): failed to open stream: No such file or directory in wp-content/plugins/ehive-access/ehive_api_client-php/domain/objectrecordfiles/ObjectRecordFilesCollectionV3.php on line 16
    • > PHP Warning
      require_once(EHIVE_API_ROOT_DIR/domain/objectrecords/Media.php): failed to open stream: No such file or directory in wp-content/plugins/ehive-access/ehive_api_client-php/domain/objectrecords/MediaRow.php on line 16
    • > PHP Warning
      require_once(EHIVE_API_ROOT_DIR/domain/objectrecords/Attribute.php): failed to open stream: No such file or directory in wp-content/plugins/ehive-access/ehive_api_client-php/domain/objectrecords/Field.php on line 16
    • > PHP Warning
      require_once(EHIVE_API_ROOT_DIR/domain/objectrecords/MediaRow.php): failed to open stream: No such file or directory in wp-content/plugins/ehive-access/ehive_api_client-php/domain/objectrecords/MediaSet.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

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
5 plugin tags: ehive, museum, archive, collection, history

ehive-access/EHiveAccess.php 92% from 13 tests

"eHive Access" version 2.4.2'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: It is recommended to name the main PHP file as the plugin slug ("ehive-access.php" instead of "EHiveAccess.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,497 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP468255642,367
CSS1231493
JavaScript18037

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.87
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes45
▷ Abstract classes00.00%
▷ Concrete classes45100.00%
▷ Final classes00.00%
Methods185
▷ Static methods42.16%
▷ Public methods18097.30%
▷ Protected methods00.00%
▷ Private methods52.70%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants22
▷ Global constants313.64%
▷ Class constants1986.36%
▷ Public constants19100.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 are no PNG files in this plugin