Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.45MB] [CPU: ▲2.54ms] Passed 4 tests
Server-side resources used by Acquaintsoft sidebar generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 49.26 ▲4.67 |
Dashboard /wp-admin | 3.75 ▲0.45 | 51.44 ▼3.13 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 55.66 ▲6.37 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 92.70 ▲2.23 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 41.58 ▲6.86 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
acq_modifiable |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Acquaintsoft sidebar generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.26 ▼0.11 | 1.64 ▼0.03 | 44.33 ▼2.43 |
Dashboard /wp-admin | 2,197 ▲29 | 5.67 ▼0.03 | 92.75 ▼8.20 | 40.68 ▼5.02 |
Posts /wp-admin/edit.php | 2,102 ▲5 | 2.01 ▲0.02 | 38.30 ▲2.48 | 35.30 ▲1.45 |
Add New Post /wp-admin/post-new.php | 6,209 ▲4,681 | 22.56 ▼0.53 | 877.73 ▲254.45 | 53.72 ▲1.29 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.19 ▼0.03 | 98.77 ▼7.63 | 43.34 ▼4.00 |
Uninstaller [IO: ▲0.00MB] [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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- acq_modifiable
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/acquaintsoft-sidebar-generator/view/popup.php:9
- > PHP Fatal error
Uncaught Error: Class 'ACS_Class' not found in wp-content/plugins/acquaintsoft-sidebar-generator/view/select_sidebar.php:6
- > PHP Fatal error
Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-html.php:4
- > PHP Fatal error
Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-ui.php:4
- > PHP Fatal error
Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-session.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/acquaintsoft-sidebar-generator/view/delete.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/acquaintsoft-sidebar-generator/view/widgets.php:8
- > PHP Fatal error
Uncaught Error: Class 'ACS_Class' not found in wp-content/plugins/acquaintsoft-sidebar-generator/view/sidebar.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/acquaintsoft-sidebar-generator/acquaintsoft_sidebar_generator.php:34
- > PHP Fatal error
Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-array.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: personalize, sidebar, custom sidebars, widget, custom...
acquaintsoft-sidebar-generator/acquaintsoft_sidebar_generator.php 85% from 13 tests
This is the main PHP file of "Acquaintsoft sidebar generator" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: It is recommended to name the main PHP file as the plugin slug ("acquaintsoft-sidebar-generator.php" instead of "acquaintsoft_sidebar_generator.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,510 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 586 | 213 | 3,006 |
JavaScript | 2 | 615 | 330 | 2,490 |
CSS | 3 | 120 | 11 | 1,014 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 101)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 40 | 26.85% |
▷ Public methods | 115 | 77.18% |
▷ Protected methods | 19 | 12.75% |
▷ Private methods | 15 | 10.07% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 39 | |
▷ Global constants | 13 | 33.33% |
▷ Class constants | 26 | 66.67% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/3.png | 2.15KB | 1.60KB | ▼ 25.47% |