84% skype-mobile-switcher

Code Review | Skype Mobile Switcher

WordPress plugin Skype Mobile Switcher scored84%from 54 tests.

About plugin

  • Plugin page: skype-mobile-swit...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Jan 23, 2014
  • Latest release: Jan 23, 2014
  • Number of updates: 11
  • Update frequency: every 0.3 days
  • Top authors: schurpf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,060 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Skype Mobile Switcher
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.72 ▼3.49
Dashboard /wp-admin3.31 ▲0.0144.27 ▼4.05
Posts /wp-admin/edit.php3.36 ▲0.0146.07 ▼1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.61 ▼9.50
Media Library /wp-admin/upload.php3.23 ▲0.0133.87 ▼2.92

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Skype Mobile Switcher
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.011.65 ▼0.1835.95 ▼14.11
Dashboard /wp-admin2,195 ▲155.56 ▼0.1284.59 ▼12.7238.31 ▼1.05
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0335.78 ▼1.2430.54 ▼1.68
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.05608.24 ▼60.6972.20 ▼16.77
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.05102.98 ▼2.0143.40 ▼2.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
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_shortcode() in wp-content/plugins/skype-mobile-switcher/skype-mobile-switcher.php:44

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: skype number, mobile phone link, mobile phone switch, desktop mobile link, mobile number

skype-mobile-switcher/skype-mobile-switcher.php Passed 13 tests

The entry point to "Skype Mobile Switcher" version 0.5 is a PHP file that has certain tags in its header comment area
99 characters long description:
Ads a simple short tag to add clickable phone numbers for mobile devices and skype calls for mobile

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
Good job! No executable or dangerous file extensions detected20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP153020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin