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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼9.57ms] Passed 4 tests
A check of server-side resources used by Safree Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.23 | 42.76 ▲0.66 |
Dashboard /wp-admin | 3.56 ▲0.22 | 50.78 ▼2.77 |
Posts /wp-admin/edit.php | 3.67 ▲0.28 | 49.67 ▼4.68 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.24 | 84.30 ▼28.66 |
Media Library /wp-admin/upload.php | 3.48 ▲0.22 | 36.25 ▼2.18 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: no files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_ctup-ads-aboutwidget |
widget_recent-comments |
widget_ctup-ads-clietwidget |
can_compress_scripts |
widget_ctup-ads-teamwidget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Safree Widgets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.35 ▼1.26 | 1.68 ▼0.06 | 42.36 ▼1.26 |
Dashboard /wp-admin | 2,207 ▲19 | 5.82 ▲0.00 | 99.11 ▼3.64 | 39.22 ▼1.48 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.03 | 35.59 ▼1.43 | 34.37 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,518 ▼6 | 23.50 ▲0.37 | 575.93 ▼103.97 | 53.64 ▲2.31 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.05 | 99.29 ▼3.54 | 44.51 ▲1.50 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_ctup-ads-teamwidget
- widget_ctup-ads-clietwidget
- widget_ctup-ads-aboutwidget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/safreen-widgets/safree-widgets.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/safreen-widgets/ourclient.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/safreen-widgets/aboutus.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/safreen-widgets/ourteam.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: clients, safreen, team members
safreen-widgets/safree-widgets.php 77% from 13 tests
The main PHP file in "Safree Widgets" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("safreen-widgets.php" instead of "safree-widgets.php")
- Domain Path: The domain path should be prefixed with a forward slash character ("/translation")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("translation")
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 plugin5,551 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 59 | 16 | 4,769 |
PHP | 4 | 317 | 44 | 751 |
CSS | 1 | 10 | 2 | 24 |
JavaScript | 1 | 12 | 1 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 11.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin