10% sango

Code Review | SANGO PLUS

WordPress plugin SANGO PLUS scored10%from 54 tests.

About plugin

  • Plugin page: sango
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2021
  • Latest release: Oct 9, 2021
  • Number of updates: 14
  • Update frequency: every 0.2 days
  • Top authors: kakakazu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /830 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/sango/classes/postpage.php+30
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.84MB] [CPU: ▼54.27ms] Passed 4 tests

Server-side resources used by SANGO PLUS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.59 ▼36.88
Dashboard /wp-admin2.16 ▼1.146.79 ▼47.52
Posts /wp-admin/edit.php2.16 ▼1.197.93 ▼41.27
Add New Post /wp-admin/post-new.php2.16 ▼3.727.24 ▼91.40
Media Library /wp-admin/upload.php2.16 ▼1.076.39 ▼30.63

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SANGO PLUS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼30613.14 ▼1.240.74 ▼1.3618.23 ▼28.34
Dashboard /wp-admin2,206 ▲214.90 ▼0.99107.98 ▼6.3937.90 ▼10.58
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.57 ▲1.7134.50 ▼5.11
Add New Post /wp-admin/post-new.php1,519 ▼1621.03 ▼0.18705.97 ▲28.2269.12 ▲14.57
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.00100.24 ▲1.8241.78 ▼3.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/sango/classes/postpage.php+30
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 items
  • 8× 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/sango/classes/copyprotect.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sango/classes/config.php:559
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sango/classes/styles.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sango/classes/fontstyle.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sango/classes/postpage.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sango/classes/fadeinanime.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sango/classes/modaltoc.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sango/classes/cardtype.php:10

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: custom, sango

sango/sango-plus.php 92% from 13 tests

The main PHP file in "SANGO PLUS" ver. 1.3.1 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: Please rename the main PHP file in this plugin to the plugin slug ("sango.php" instead of "sango-plus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,488 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP95796971
CSS31414448
JavaScript35769

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin