83% focus-sitecall-pro

Code Review | Focus SiteCall Pro

WordPress plugin Focus SiteCall Pro scored83%from 54 tests.

About plugin

  • Plugin page: focus-sitecall-pro
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2019
  • Latest release: Mar 7, 2019
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: focustelecom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /737 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.17MB] [CPU: ▼6.79ms] Passed 4 tests

This is a short check of server-side resources used by Focus SiteCall Pro
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1334.68 ▼4.82
Dashboard /wp-admin3.53 ▲0.2244.40 ▼3.61
Posts /wp-admin/edit.php3.58 ▲0.2249.85 ▲2.62
Add New Post /wp-admin/post-new.php6.05 ▲0.1679.07 ▼20.15
Media Library /wp-admin/upload.php3.39 ▲0.1535.58 ▲1.41

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Focus SiteCall Pro
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.67 ▼1.081.65 ▼0.0936.93 ▼3.66
Dashboard /wp-admin2,262 ▲745.83 ▼0.18110.54 ▲3.3478.83 ▲33.84
Posts /wp-admin/edit.php2,148 ▲592.03 ▲0.0535.76 ▲0.0833.46 ▼2.81
Add New Post /wp-admin/post-new.php1,569 ▲3123.14 ▼0.17710.54 ▼5.5049.18 ▼11.85
Media Library /wp-admin/upload.php1,447 ▲654.22 ▲0.0396.68 ▼4.3478.81 ▲30.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/focus-sitecall-pro/class.focussitecall-templates-sitecalls-list-table.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/focus-sitecall-pro/class.focussitecall-templates-sitecalls-list-table.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/focus-sitecall-pro/class.focussitecall-templates-sitecalls-list-table.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/focus-sitecall-pro/class.focussitecall-sitecalls-list-table.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/focus-sitecall-pro/class.focussitecall-templates-sitecalls-list-table.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/focus-sitecall-pro/views/install_instructions/instruction.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/focus-sitecall-pro/class.fucussitecall-add-widget.php:142
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/focus-sitecall-pro/class.focussitecall-templates-sitecalls-list-table.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/focus-sitecall-pro/class.focussitecall-templates-sitecalls-list-table.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/focus-sitecall-pro/class.focussitecall-templates-sitecalls-list-table.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (19 tag instead of maximum 10)
Please take inspiration from this readme.txt

focus-sitecall-pro/focussitecall.php 92% from 13 tests

The principal PHP file in "Focus SiteCall Pro" v. 1.1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("focus-sitecall-pro.php" instead of "focussitecall.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
Success! There were no dangerous files found in this plugin979 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP132299801
PO File13944103
SVG11170
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.67
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods66
▷ Static methods2131.82%
▷ Public methods5989.39%
▷ Protected methods00.00%
▷ Private methods710.61%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants19
▷ Global constants00.00%
▷ Class constants19100.00%
▷ Public constants19100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.60MB with 0.40MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/install_instruction/en/menu.png190.47KB57.63KB▼ 69.74%
images/install_instruction/pl/menu.png208.25KB65.46KB▼ 68.57%
images/install_instruction/pl/domain.png114.99KB41.49KB▼ 63.92%
images/install_instruction/en/domain.png103.42KB37.30KB▼ 63.93%