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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.59 ▼36.88 |
Dashboard /wp-admin | 2.16 ▼1.14 | 6.79 ▼47.52 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 7.93 ▼41.27 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 7.24 ▼91.40 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,465 ▼306 | 13.14 ▼1.24 | 0.74 ▼1.36 | 18.23 ▼28.34 |
Dashboard /wp-admin | 2,206 ▲21 | 4.90 ▼0.99 | 107.98 ▼6.39 | 37.90 ▼10.58 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 39.57 ▲1.71 | 34.50 ▼5.11 |
Add New Post /wp-admin/post-new.php | 1,519 ▼16 | 21.03 ▼0.18 | 705.97 ▲28.22 | 69.12 ▲14.57 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.22 ▲0.00 | 100.24 ▲1.82 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 57 | 96 | 971 |
CSS | 3 | 14 | 14 | 448 |
JavaScript | 3 | 5 | 7 | 69 |
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 code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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