10% logmycalls-dashboard

Code Review | LogMyCalls Dashboard

WordPress plugin LogMyCalls Dashboard scored10%from 54 tests.

About plugin

  • Plugin page: logmycalls-dashboard
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2013
  • Latest release: Mar 15, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: purcebr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /797 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/logmycalls-dashboard/logmycalls-dashboard.php+24
    Non-static method LogMyCalls_Integration::logmycalls_include_from() should not be called statically

Server metrics [RAM: ▼1.85MB] [CPU: ▼51.96ms] Passed 4 tests

Analyzing server-side resources used by LogMyCalls Dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.37 ▼36.53
Dashboard /wp-admin2.16 ▼1.1411.67 ▼37.84
Posts /wp-admin/edit.php2.16 ▼1.197.32 ▼41.78
Add New Post /wp-admin/post-new.php2.16 ▼3.737.26 ▼91.67
Media Library /wp-admin/upload.php2.16 ▼1.077.44 ▼30.44
LogMyCalls Settings /wp-admin/options-general.php?page=logmycalls-settings2.166.56

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

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

Browser metrics Passed 4 tests

LogMyCalls Dashboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.27 ▼0.131.85 ▲0.1241.42 ▼2.56
Dashboard /wp-admin2,240 ▲605.57 ▼0.1084.39 ▼4.4542.44 ▼2.57
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0539.62 ▼3.0935.29 ▼2.41
Add New Post /wp-admin/post-new.php1,529 ▲323.27 ▲0.17673.62 ▼8.6554.56 ▼6.51
Media Library /wp-admin/upload.php1,401 ▲44.18 ▼0.0699.13 ▼9.0442.81 ▼2.97
LogMyCalls Settings /wp-admin/options-general.php?page=logmycalls-settings9532.0027.0628.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/logmycalls-dashboard/logmycalls-dashboard.php+24
    Non-static method LogMyCalls_Integration::logmycalls_include_from() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% 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)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=logmycalls-settings
    • > Deprecated in wp-content/plugins/logmycalls-dashboard/logmycalls-dashboard.php+24
    Non-static method LogMyCalls_Integration::logmycalls_include_from() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=logmycalls-settings
    • > Notice in wp-content/plugins/logmycalls-dashboard/logmycalls-dashboard.php+141
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Metric' not found in wp-content/plugins/logmycalls-dashboard/lib/metrics/lmclongestcall.metric.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Metric' not found in wp-content/plugins/logmycalls-dashboard/lib/metrics/lmctotalcalls.metric.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Metric' not found in wp-content/plugins/logmycalls-dashboard/lib/metrics/lmctotalcallduration.metric.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Metric' not found in wp-content/plugins/logmycalls-dashboard/lib/metrics/lmctotalcallsanswered.metric.class.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/logmycalls-dashboard/lib/lmcconnector.class.php:68
    • > PHP Fatal error
      Uncaught Error: Class 'Metric' not found in wp-content/plugins/logmycalls-dashboard/lib/metrics/lcmaveragecallduration.metric.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Metric' not found in wp-content/plugins/logmycalls-dashboard/lib/metrics/lmctotalcallsunanswered.metric.class.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
2 plugin tags: call tracking, logmycalls

logmycalls-dashboard/logmycalls-dashboard.php Passed 13 tests

The entry point to "LogMyCalls Dashboard" version 1.0 is a PHP file that has certain tags in its header comment area
45 characters long description:
Display LogMyCalls stats on your WP Dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,013 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP14274185937
CSS119076

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.69
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods90
▷ Static methods11.11%
▷ Public methods8392.22%
▷ Protected methods00.00%
▷ Private methods77.78%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin