67% speakpipe-voicemail-for-websites

Code Review | SpeakPipe - Voicemail for Websites

WordPress plugin SpeakPipe - Voicemail for Websites scored 67% from 54 tests.

About plugin

  • Plugin page: speakpipe-voicema...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: May 29, 2018
  • Number of updates: 16
  • Update frequency: every 122.6 days
  • Top authors: speakpipe (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 20,309 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼33.89ms] Passed 4 tests

This is a short check of server-side resources used by SpeakPipe - Voicemail for Websites
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.05 ▼0.15
Dashboard /wp-admin3.04 ▼0.2622.93 ▼24.00
Posts /wp-admin/edit.php3.04 ▼0.3124.95 ▼24.45
Add New Post /wp-admin/post-new.php3.04 ▼2.8423.84 ▼74.54
Media Library /wp-admin/upload.php3.04 ▼0.1921.97 ▼12.55
SpeakPipe /wp-admin/options-general.php?page=speakpipe3.0423.25

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

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

Browser metrics Passed 4 tests

SpeakPipe - Voicemail for Websites: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.21 ▼1.381.64 ▼0.1747.54 ▲4.75
Dashboard /wp-admin2,218 ▲275.80 ▼0.0896.03 ▼8.8841.78 ▲0.90
Posts /wp-admin/edit.php2,100 ▲81.99 ▼0.0136.38 ▼4.5035.69 ▼1.82
Add New Post /wp-admin/post-new.php1,544 ▲2521.13 ▼1.95657.47 ▼1.9847.93 ▼2.01
Media Library /wp-admin/upload.php1,394 ▲94.25 ▼0.02101.07 ▲4.0342.46 ▼2.95
SpeakPipe /wp-admin/options-general.php?page=speakpipe8222.1926.2025.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=speakpipe
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=speakpipe
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=speakpipe
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/speakpipe-voicemail-for-websites/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speakpipe-voicemail-for-websites/speakpipe.php:20

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 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === speakpipe-voicemail-for-websites === )
You can take inspiration from this readme.txt

speakpipe-voicemail-for-websites/speakpipe.php 85% from 13 tests

"SpeakPipe - Voicemail for Websites" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("speakpipe-voicemail-for-websites.php" instead of "speakpipe.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected208 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36616208

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity25.00
▷ Minimum class complexity16.00
▷ Maximum class complexity34.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png5.84KB2.87KB▼ 50.80%