62% spolecznosciowa-6-pl-2013

Code Review | Społecznościowa 6 PL 2013

WordPress plugin Społecznościowa 6 PL 2013 scored62%from 54 tests.

About plugin

  • Plugin page: spolecznosciowa-6...
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.5.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2013
  • Latest release: Sep 20, 2020
  • Number of updates: 37
  • Update frequency: every 75.9 days
  • Top authors: szajenw (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /5,559 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼44.63ms] Passed 4 tests

Server-side resources used by Społecznościowa 6 PL 2013
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.19 ▼0.18
Dashboard /wp-admin3.02 ▼0.3220.04 ▼41.51
Posts /wp-admin/edit.php3.02 ▼0.3323.31 ▼26.73
Add New Post /wp-admin/post-new.php3.02 ▼2.8619.60 ▼93.85
Media Library /wp-admin/upload.php3.02 ▼0.2021.31 ▼16.42
Społecznościowa 6 PL /wp-admin/options-general.php?page=spolecznosciowa-6-pl3.0219.03

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 12 new options
New WordPress options
wkomsp_facebook
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
wkomsp_beforepost
widget_recent-posts
wkomsp_twitter
wkomsp_google
wkomsp_nk
wkomsp_wykop
...

Browser metrics Passed 4 tests

Społecznościowa 6 PL 2013: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.29 ▼0.741.73 ▲0.1838.18 ▼1.15
Dashboard /wp-admin2,210 ▲194.87 ▼0.01115.54 ▲6.4141.85 ▼1.25
Posts /wp-admin/edit.php2,096 ▲71.98 ▼0.0638.50 ▼1.0935.28 ▼0.51
Add New Post /wp-admin/post-new.php1,536 ▲223.26 ▲0.04668.44 ▲19.5452.34 ▼8.17
Media Library /wp-admin/upload.php1,386 ▼24.19 ▼0.01102.20 ▼3.5540.02 ▼5.14
Społecznościowa 6 PL /wp-admin/options-general.php?page=spolecznosciowa-6-pl1,0743.7659.9852.32

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
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=spolecznosciowa-6-pl
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=spolecznosciowa-6-pl
    • > Notice in wp-content/plugins/spolecznosciowa-6-pl-2013/wkomsp-admin.php+27
    Constant wkom_folder already defined
    • > GET request to /wp-admin/options-general.php?page=spolecznosciowa-6-pl
    • > Notice in wp-content/plugins/spolecznosciowa-6-pl-2013/wkomsp-admin.php+30
    Undefined index: hiddenconfirm

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/spolecznosciowa-6-pl-2013/spolecznosciowa-6-pl-2013.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/spolecznosciowa-6-pl-2013/wkomsp-admin.php:27
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/spolecznosciowa-6-pl-2013/spolecznosciowa-6-pl-2013.php on line 17
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/spolecznosciowa-6-pl-2013/wkomsp-admin.php on line 27

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=spolecznosciowa-6-pl
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=spolecznosciowa-6-pl
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

spolecznosciowa-6-pl-2013/spolecznosciowa-6-pl-2013.php Passed 13 tests

The main file in "Społecznościowa 6 PL 2013" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
135 characters long description:
Najszybsza i najmniej obciążająca wtyczka społecznościowa zawierająca serwisy: Facebook, Twitter, Google+, Wykop i Naszą Klasę.

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 detected313 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP410747313

PHP code Passed 2 tests

This is a very shot 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 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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ikony/blip24.png1.34KB1.38KB0.00%
ikony/google24.png1.18KB1.40KB0.00%
ikony/facebook24.png0.96KB1.19KB0.00%
ikony/un1.png1.29KB1.38KB0.00%
ikony/wykop24.png1.37KB1.35KB▼ 1.43%