10% social-way-by-cadienvan-projects

Code Review | Social Way By Cadienvan Projects

WordPress plugin Social Way By Cadienvan Projects scored 10% from 54 tests.

About plugin

  • Plugin page: social-way-by-cad...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2013
  • Latest release: Jan 15, 2014
  • Number of updates: 7
  • Update frequency: every 16.9 days
  • Top authors: Cadienvan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 858 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/social-way-by-cadienvan-projects/index.php+21
    Uncaught Error: Call to undefined function mysql_result() in wp-content/plugins/social-way-by-cadienvan-projects/index.php:21
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.40ms] Passed 4 tests

Analyzing server-side resources used by Social Way By Cadienvan Projects
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0049.39 ▲6.20
Dashboard /wp-admin3.31 ▲0.0052.29 ▼2.23
Posts /wp-admin/edit.php3.36 ▲0.0051.28 ▲0.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.53 ▲7.29
Media Library /wp-admin/upload.php3.23 ▲0.0036.44 ▼2.62

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Social Way By Cadienvan Projects: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼1113.35 ▼0.872.21 ▲0.0343.30 ▼1.03
Dashboard /wp-admin2,206 ▲34.84 ▼0.95109.20 ▲8.1638.62 ▼4.06
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0440.11 ▲2.9636.89 ▲3.00
Add New Post /wp-admin/post-new.php1,533 ▼023.68 ▲0.40665.98 ▲10.1183.02 ▲32.63
Media Library /wp-admin/upload.php1,385 ▲34.25 ▲0.0395.26 ▼5.8039.86 ▼0.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/social-way-by-cadienvan-projects/skype.php
    • > /wp-content/plugins/social-way-by-cadienvan-projects/googleplus.php
    • > /wp-content/plugins/social-way-by-cadienvan-projects/linkedin.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: lang in wp-content/plugins/social-way-by-cadienvan-projects/linkedin.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === social-way-by-cadienvan-projects === )
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

social-way-by-cadienvan-projects/index.php 77% from 13 tests

The main PHP file in "Social Way By Cadienvan Projects" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("social-way-by-cadienvan-projects.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 322 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
Success! There were no dangerous files found in this plugin4,396 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP73692743,756
CSS71320585
JavaScript17355

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity75.80
▷ Minimum class complexity11.00
▷ Maximum class complexity198.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods97
▷ Static methods11.03%
▷ Public methods8183.51%
▷ Protected methods1616.49%
▷ Private methods00.00%
Functions60
▷ Named functions5998.33%
▷ Anonymous functions11.67%
Constants56
▷ Global constants56100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
30 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
list.png1.90KB1.75KB▼ 7.56%
check_radio_sheet.png4.24KB0.99KB▼ 76.72%
list2.png0.46KB0.35KB▼ 24.79%
icon.png0.86KB1.06KB0.00%
skype.png1.63KB1.41KB▼ 13.50%