84% ehive-account-details

Code Review | eHive Account Details

WordPress plugin eHive Account Details scored84%from 54 tests.

About plugin

  • Plugin page: ehive-account-det...
  • Plugin version: 2.4.1
  • 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: Oct 9, 2023
  • Number of updates: 51
  • Update frequency: every 75.1 days
  • Top authors: vernonsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.99ms] Passed 4 tests

Analyzing server-side resources used by eHive Account Details
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.72 ▲2.24
Dashboard /wp-admin3.39 ▲0.0443.34 ▼15.94
Posts /wp-admin/edit.php3.50 ▲0.1445.39 ▼3.67
Add New Post /wp-admin/post-new.php5.97 ▲0.0879.65 ▼11.88
Media Library /wp-admin/upload.php3.31 ▲0.0835.12 ▼0.47

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for eHive Account Details
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.23 ▼0.181.93 ▲0.3546.63 ▲6.59
Dashboard /wp-admin2,198 ▲215.61 ▼0.0180.37 ▼7.7137.96 ▼2.58
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0033.24 ▼3.6835.65 ▲2.56
Add New Post /wp-admin/post-new.php1,529 ▲322.80 ▼0.22640.67 ▼24.9857.67 ▲0.06
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0098.40 ▼7.1542.87 ▼1.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'publicProfileName' of non-object in wp-content/plugins/ehive-account-details/templates/eHiveAccountDetails.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ehive-account-details/EHiveAccountDetails.php:28
    • > PHP Notice
      Undefined variable: account in wp-content/plugins/ehive-account-details/templates/eHiveAccountDetails.php on line 67
    • > PHP Notice
      Undefined variable: css_class in wp-content/plugins/ehive-account-details/templates/eHiveAccountDetails.php on line 19
    • > PHP Notice
      Undefined variable: account in wp-content/plugins/ehive-account-details/templates/eHiveAccountDetails.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to a member function getMediaSetByIdentifier() on null in wp-content/plugins/ehive-account-details/templates/eHiveAccountDetails.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: history, collection, archive, museum, ehive

ehive-account-details/EHiveAccountDetails.php 85% from 13 tests

The entry point to "eHive Account Details" version 2.4.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 184 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ehive-account-details.php" instead of "EHiveAccountDetails.php")

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
No dangerous file extensions were detected1,139 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP313640563
CSS21423302
HTML2345202
JavaScript43772

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
62 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/category_art.png0.56KB0.27KB▼ 51.83%
images/account_details_item.png2.87KB2.30KB▼ 19.86%
images/functionspaces.png3.37KB0.44KB▼ 86.92%
js/prettyPhoto_compressed_3.1.6/images/prettyPhoto/light_square/btnPrevious.png1.41KB1.19KB▼ 15.74%
js/prettyPhoto_compressed_3.1.6/images/prettyPhoto/dark_rounded/btnPrevious.png1.41KB1.19KB▼ 15.74%