84% socials-ignited

Code Review | Socials Ignited

WordPress plugin Socials Ignited scored84%from 54 tests.

About plugin

  • Plugin page: socials-ignited
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.0
  • WordPress version: 6.3.1
  • First release: Nov 24, 2012
  • Latest release: Aug 31, 2023
  • Number of updates: 165
  • Update frequency: every 23.8 days
  • Top authors: anastis (92.12%)silencerius (4.24%)cssigniterteam (3.03%)tsiger (2.42%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active /80,918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼9.23ms] Passed 4 tests

This is a short check of server-side resources used by Socials Ignited
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2640.29 ▼0.22
Dashboard /wp-admin3.57 ▲0.2245.02 ▼16.53
Posts /wp-admin/edit.php3.68 ▲0.3247.98 ▲5.20
Add New Post /wp-admin/post-new.php6.15 ▲0.2679.72 ▼23.30
Media Library /wp-admin/upload.php3.49 ▲0.2637.36 ▲3.14
Socials Ignited /wp-admin/options-general.php?page=cisiw-options3.4631.06

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options
widget_socials-ignited
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Socials Ignited: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.59 ▼0.701.89 ▼0.1141.87 ▼0.80
Dashboard /wp-admin2,210 ▲254.85 ▼0.97106.69 ▲6.4436.32 ▼2.70
Posts /wp-admin/edit.php2,090 ▲12.05 ▲0.0638.98 ▲2.8235.06 ▲0.26
Add New Post /wp-admin/post-new.php1,523 ▼1423.22 ▲4.88600.66 ▼27.9353.52 ▲4.59
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0294.73 ▼6.4841.80 ▼1.77
Socials Ignited /wp-admin/options-general.php?page=cisiw-options1,2782.3956.1528.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_socials-ignited
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socials-ignited/includes/admin-page.php:102
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/socials-ignited/socials-ignited.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/socials-ignited/includes/widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: social, widget, icons, round, square...

socials-ignited/socials-ignited.php 85% from 13 tests

Analyzing the main PHP file in "Socials Ignited" version 2.0.0
Please make the necessary changes and fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin14,726 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
CSS81,537103,289
PHP6117761,614
Sass3190146
JavaScript42311125

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.50
▷ Minimum class complexity8.00
▷ Maximum class complexity43.00
Average method complexity6.44
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin