74% jc-skype-addon

Code Review | Skype Addon

WordPress plugin Skype Addon scored74%from 54 tests.

About plugin

  • Plugin page: jc-skype-addon
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 8, 2014
  • Latest release: Jun 8, 2014
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: rajiv-jyasha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,273 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Skype Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.45 ▼1.12
Dashboard /wp-admin3.31 ▲0.0142.02 ▼4.01
Posts /wp-admin/edit.php3.36 ▲0.0147.63 ▼1.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.40 ▼16.56
Media Library /wp-admin/upload.php3.23 ▲0.0133.75 ▼1.88

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Skype Addon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.13 ▼1.245.40 ▲3.6535.92 ▼5.78
Dashboard /wp-admin2,225 ▲374.80 ▼1.01107.65 ▲2.3542.81 ▲3.56
Posts /wp-admin/edit.php2,105 ▲161.98 ▼0.0141.10 ▲1.1435.79 ▼0.66
Add New Post /wp-admin/post-new.php1,546 ▲2723.62 ▲0.25637.94 ▼12.6959.10 ▲1.99
Media Library /wp-admin/upload.php1,404 ▲134.26 ▲0.0995.91 ▼8.5343.53 ▼0.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SkypeAddon::uninstall() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jc-skype-addon/views/admin_addskype.php on line 15
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/jc-skype-addon/views/admin_addskype.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jc-skype-addon/views/admin_addskype.php on line 22
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/jc-skype-addon/views/admin_addskype.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/jc-skype-addon/views/admin_addskype.php:51
    • > PHP Warning
      in_array() expects parameter 2 to be array, null given in wp-content/plugins/jc-skype-addon/views/admin_addskype.php on line 16
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/jc-skype-addon/views/admin_addskype.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jc-skype-addon/views/admin_addskype.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jc-skype-addon/views/admin_addskype.php on line 16
    • > PHP Warning
      in_array() expects parameter 2 to be array, null given in wp-content/plugins/jc-skype-addon/views/admin_addskype.php on line 15

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

readme.txt Passed 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
5 plugin tags: skype chat, addon, socialmedia, skype, skype-addon

jc-skype-addon/skypeaddon.php 92% from 13 tests

"Skype Addon" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("jc-skype-addon.php" instead of "skypeaddon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected216 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP54968216

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods315.00%
▷ Public methods1470.00%
▷ Protected methods00.00%
▷ Private methods630.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin