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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.51MB] [CPU: ▼18.65ms] Passed 4 tests
An overview of server-side resources used by e-youbica
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 36.33 ▼4.85 |
Dashboard /wp-admin | 3.47 ▲0.17 | 44.94 ▼3.65 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 41.93 ▼5.96 |
Add New Post /wp-admin/post-new.php | 3.35 ▼2.54 | 37.85 ▼60.15 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 35.74 ▲2.15 |
e-youbica /wp-admin/options-general.php?page=youbica-settings-page | 3.36 | 33.51 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for e-youbica
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲188 | 13.75 ▼1.06 | 10.54 ▲8.44 | 41.95 ▼5.58 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.01 | 107.07 ▲1.73 | 48.65 ▲11.36 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.03 ▲0.03 | 38.96 ▲4.26 | 34.93 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.32 ▲0.20 | 642.40 ▲49.58 | 51.25 ▲2.76 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.05 | 108.49 ▲10.21 | 47.27 ▲4.16 |
e-youbica /wp-admin/options-general.php?page=youbica-settings-page | 787 | 2.02 | 28.13 | 29.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/e-youbica/youbica.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-youbica/includes/class-api-user-youbica.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-youbica/includes/class-user-youbica.php:6
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: e-commerce, social
e-youbica/youbica.php 77% from 13 tests
The entry point to "e-youbica" version 1.2.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("e-youbica.php" instead of "youbica.php")
- Description: Keep the plugin description shorter than 140 characters (currently 198 characters long)
- Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,548 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 44 | 37 | 791 |
PHP | 7 | 109 | 117 | 627 |
JavaScript | 1 | 16 | 3 | 117 |
SVG | 2 | 0 | 1 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 37.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pngegg.png | 6.40KB | 2.83KB | ▼ 55.79% |
assets/img/close.png | 0.34KB | 0.25KB | ▼ 27.27% |