84% focus-sitecall-lite

Code Review | Focus SiteCall Lite

WordPress plugin Focus SiteCall Lite scored84%from 54 tests.

About plugin

  • Plugin page: focus-sitecall-lite
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2019
  • Latest release: Mar 13, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: focustelecom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /667 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.03MB] [CPU: ▼6.00ms] Passed 4 tests

A check of server-side resources used by Focus SiteCall Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.77 ▼1.66
Dashboard /wp-admin3.35 ▲0.0043.99 ▼15.89
Posts /wp-admin/edit.php3.46 ▲0.1047.69 ▲5.30
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.22 ▼5.65
Media Library /wp-admin/upload.php3.27 ▲0.0432.54 ▼0.78

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Focus SiteCall Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲9713.30 ▼1.381.64 ▼0.3040.01 ▼0.63
Dashboard /wp-admin2,277 ▲895.85 ▲0.71105.00 ▲3.7070.20 ▲27.05
Posts /wp-admin/edit.php2,157 ▲652.03 ▲0.0437.21 ▲1.7233.08 ▲0.22
Add New Post /wp-admin/post-new.php1,594 ▲6423.21 ▲0.05755.10 ▲62.7753.65 ▲0.89
Media Library /wp-admin/upload.php1,456 ▲654.21 ▲0.00104.21 ▼1.4444.14 ▼5.28

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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 fix the following items
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > 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-lite/class.focussitecalllite-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-lite/class.focussitecalllite-sitecalls-list-table.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/focus-sitecall-lite/class.focussitecalllite-sitecall-agreements-list-table.php:3
    • > 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-lite/class.focussitecalllite-templates-sitecalls-list-table.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'FocusSitecallLite_Sitecalls_Model' not found in wp-content/plugins/focus-sitecall-lite/class.focussitecalllite-sitecall-agreements-model.php:4
    • > 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-lite/class.focussitecalllite-sitecalls-list-table.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/focus-sitecall-lite/class.focussitecalllite-sitecall-agreements-list-table.php:3
    • > 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-lite/class.focussitecalllite-templates-sitecalls-list-table.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/focus-sitecall-lite/class.focussitecalllite-provider.php on line 5
    • > 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-lite/class.focussitecalllite-templates-sitecalls-list-table.php on line 7

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
The official readme.txt might help

focus-sitecall-lite/focussitecalllite.php 92% from 13 tests

The main PHP file in "Focus SiteCall Lite" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("focus-sitecall-lite.php" instead of "focussitecalllite.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
Everything looks great! No dangerous files found in this plugin4,687 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JSON2002,481
PHP17443451,718
PO File1106122253
CSS321488
SVG11183
JavaScript437964

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.35
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes15.88%
▷ Concrete classes1694.12%
▷ Final classes00.00%
Methods99
▷ Static methods3232.32%
▷ Public methods8888.89%
▷ Protected methods00.00%
▷ Private methods1111.11%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants23
▷ Global constants00.00%
▷ Class constants23100.00%
▷ Public constants23100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/LogoSiteCallLiteFullLogo.png16.62KB5.73KB▼ 65.51%