Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.19ms] Passed 4 tests
Analyzing server-side resources used by Phanes Marketing Woo-Youtube Reviews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.89 ▼1.52 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.80 ▼0.34 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.60 ▲0.28 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 86.38 ▼15.16 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.99 ▲0.93 |
License /wp-admin/admin.php?page=phanes-marketing-license | 3.27 | 30.97 |
Phanes Marketing /wp-admin/admin.php?page=phanes-marketing | 3.27 | 32.59 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Phanes Marketing Woo-Youtube Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲136 | 13.23 ▼1.44 | 1.95 ▲0.29 | 43.30 ▼1.14 |
Dashboard /wp-admin | 2,249 ▲64 | 5.88 ▲0.00 | 98.19 ▼6.79 | 40.35 ▼2.94 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.03 ▲0.02 | 38.78 ▼1.14 | 34.00 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,578 ▲58 | 18.28 ▼4.78 | 624.21 ▼45.28 | 62.70 ▲5.01 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.22 ▲0.01 | 97.04 ▼5.43 | 42.47 ▼4.51 |
License /wp-admin/admin.php?page=phanes-marketing-license | 825 | 2.07 | 24.90 | 30.36 |
Phanes Marketing /wp-admin/admin.php?page=phanes-marketing | 858 | 2.17 | 23.91 | 29.80 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/phanes-marketing/admin/settings-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/phanes-marketing/admin/license-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/phanes-marketing/class-youtube.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 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #1600, #2, #3, #4, #0 in phanes-marketing/assets to your readme.txt
phanes-marketing/phanes-marketing.php Passed 13 tests
The principal PHP file in "Phanes Marketing Woo-Youtube Reviews" v. 1.0.1 is loaded by WordPress automatically on each request
125 characters long description:
Phanes Marketing is a WooCommerce Marketing Tool that displays Youtube Reviews on product pages to increase sales conversion.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,970 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 460 | 880 | 1,882 |
PHP | 6 | 181 | 111 | 546 |
CSS | 3 | 70 | 173 | 542 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin