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.42MB] [CPU: ▼292.76ms] Passed 4 tests
This is a short check of server-side resources used by Acquaintsoft sidebar generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.45 | 71.96 ▲12.96 |
Dashboard /wp-admin | 3.80 ▲0.40 | 41.25 ▲6.10 |
Posts /wp-admin/edit.php | 4.09 ▲0.45 | 39.57 ▲3.38 |
Add New Post /wp-admin/post-new.php | 7.36 ▲0.36 | 97.70 ▼1,183.21 |
Media Library /wp-admin/upload.php | 3.75 ▲0.46 | 26.65 ▲2.69 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 1 new option
New WordPress options |
---|
acq_modifiable |
Browser metrics Passed 4 tests
Checking browser requirements for Acquaintsoft sidebar generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲36 | 15.93 ▲0.35 | 6.21 ▲0.22 | 2.63 ▼3.20 |
Dashboard /wp-admin | 2,902 ▲51 | 6.22 ▲0.09 | 117.71 ▼25.54 | 153.59 ▼14.45 |
Posts /wp-admin/edit.php | 2,701 ▲7 | 3.24 ▲0.01 | 63.85 ▼1.13 | 142.60 ▼3.87 |
Add New Post /wp-admin/post-new.php | 1,794 ▲133 | 17.09 ▼4.02 | 451.26 ▲32.03 | 167.79 ▲9.42 |
Media Library /wp-admin/upload.php | 1,705 ▲7 | 5.57 ▲0.07 | 139.97 ▼32.47 | 188.98 ▼3.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- acq_modifiable
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (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 '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 add_action() in wp-content/plugins/acquaintsoft-sidebar-generator/include/acquaintsoft_sidebar_generator_class.php:519
- > 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: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-array.php:4
- > PHP Fatal error
Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-debug.php:3
- > PHP Fatal error
Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-updates.php:5
- > 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: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-ui.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
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: sidebars, personalize, sidebar, widget, widgets...
acquaintsoft-sidebar-generator/acquaintsoft_sidebar_generator.php 85% from 13 tests
The principal PHP file in "Acquaintsoft sidebar generator" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same 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 | A short review of files and their extensions; it is not recommended to include executable files
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
These 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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% |