10% freecall

Code Review | FreeCallinc.com

WordPress plugin FreeCallinc.com scored10%from 54 tests.

About plugin

  • Plugin page: freecall
  • Plugin version: 1.0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Oct 17, 2016
  • Number of updates: 16
  • Update frequency: every 14.4 days
  • Top authors: deskgod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,067 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.00ms] Passed 4 tests

An overview of server-side resources used by FreeCallinc.com
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.30 ▼4.76
Dashboard /wp-admin3.31 ▲0.0152.04 ▼2.01
Posts /wp-admin/edit.php3.36 ▲0.0153.30 ▼1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.72 ▼12.05
Media Library /wp-admin/upload.php3.24 ▲0.0137.68 ▲0.12
freecallinc Settings /wp-admin/options-general.php?page=freecall/freecallinc.php3.1832.47

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

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

Browser metrics Passed 4 tests

Checking browser requirements for FreeCallinc.com
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6413.34 ▼0.971.59 ▼0.4141.98 ▼3.87
Dashboard /wp-admin2,233 ▲304.92 ▼0.95104.31 ▼7.9638.23 ▼3.13
Posts /wp-admin/edit.php2,112 ▲122.01 ▼0.0539.65 ▲0.5532.60 ▼4.75
Add New Post /wp-admin/post-new.php1,562 ▲1723.21 ▲0.33642.69 ▲28.5092.17 ▲28.85
Media Library /wp-admin/upload.php1,409 ▲124.19 ▼0.04100.69 ▼1.0548.46 ▲1.46
freecallinc Settings /wp-admin/options-general.php?page=freecall/freecallinc.php8342.0629.6032.50

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • 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)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=freecall/freecallinc.php
    • > Warning in wp-content/plugins/freecall/freecallinc.php+122
    Illegal string offset 'companyId'
    • > GET request to /wp-admin/options-general.php?page=freecall/freecallinc.php
    • > Warning in wp-content/plugins/freecall/freecallinc.php+126
    Illegal string offset 'siteId'

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freecall/freecallinc.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Easily track your call history.), #2 (See where people call you from.), #3 (The Wordpress Plugin settings.)
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
You can look at the official readme.txt

freecall/freecallinc.php 77% from 13 tests

Analyzing the main PHP file in "FreeCallinc.com" version 1.0.0.1
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("freecall.php" instead of "freecallinc.php")
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 73 characters long)
  • Description: Keep the plugin description shorter than 140 characters (currently 328 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin149 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1118149

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 1.20MB with 0.58MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png10.48KB5.01KB▼ 52.25%
favicon.png2.96KB1.99KB▼ 32.92%
screenshot-1.png528.88KB237.08KB▼ 55.17%
screenshot-2.png686.04KB312.13KB▼ 54.50%