79% callphoner

Code Review | CallPhone'r

WordPress plugin CallPhone'r scored79%from 54 tests.

About plugin

  • Plugin page: callphoner
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Sep 25, 2015
  • Latest release: Jun 8, 2021
  • Number of updates: 9
  • Update frequency: every 231.6 days
  • Top authors: mojwp (88.89%)wpshopbiz (22.22%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /6,050 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.84ms] Passed 4 tests

Analyzing server-side resources used by CallPhone'r
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.79 ▼2.12
Dashboard /wp-admin3.39 ▲0.0951.28 ▼1.58
Posts /wp-admin/edit.php3.50 ▲0.1549.07 ▼5.85
Add New Post /wp-admin/post-new.php5.97 ▲0.0997.16 ▲2.21
Media Library /wp-admin/upload.php3.31 ▲0.0940.44 ▲4.32
Instruction /wp-admin/admin.php?page=callphoner_support3.2833.09
Settings /wp-admin/admin.php?page=callphoner3.2631.87

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CallPhone'r
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.34 ▼0.012.08 ▼0.1244.31 ▲0.33
Dashboard /wp-admin2,224 ▲475.67 ▼0.0291.42 ▼6.6242.45 ▼5.39
Posts /wp-admin/edit.php2,129 ▲291.96 ▼0.0538.87 ▲0.5037.79 ▲3.91
Add New Post /wp-admin/post-new.php1,550 ▲2222.97 ▼0.09675.80 ▼6.6453.26 ▼20.10
Media Library /wp-admin/upload.php1,426 ▲234.21 ▲0.05103.42 ▲1.2144.97 ▼1.28
Instruction /wp-admin/admin.php?page=callphoner_support8492.0423.4728.99
Settings /wp-admin/admin.php?page=callphoner7,0662.5752.1340.68

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=callphoner
    • > Notice in wp-content/plugins/callphoner/callphoner.php+102
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/callphoner/callphoner.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 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
8 plugin tags: contact, e-commerce, android, iphone, mobile...

callphoner/callphoner.php Passed 13 tests

The primary PHP file in "CallPhone'r" version 1.1.1 is used by WordPress to initiate all plugin functionality
74 characters long description:
Increase calls of the clients who visit your website from the mobile phone

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 plugin539 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP15412377
PO File1282876
CSS213049
JavaScript18237

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity4.31
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin