Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.33ms] Passed 4 tests
Server-side resources used by WPFrank Companion
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.11 ▼1.06 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.44 ▼5.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.75 ▼3.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.88 ▼3.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.69 ▼4.44 |
Server storage [IO: ▲15.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 138 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
fresh_website_activate |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WPFrank Companion
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,785 ▲23 | 14.67 ▲0.43 | 1.60 ▼0.35 | 33.99 ▼11.19 |
Dashboard /wp-admin | 2,195 ▲21 | 5.64 ▼0.02 | 94.56 ▲5.82 | 42.00 ▲3.16 |
Posts /wp-admin/edit.php | 2,109 ▲12 | 1.98 ▼0.04 | 41.04 ▲4.45 | 35.55 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,526 ▼153 | 23.73 ▲1.71 | 641.38 ▲10.05 | 57.80 ▲11.03 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.06 ▼0.12 | 114.89 ▲11.02 | 41.19 ▼5.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- fresh_website_activate
- widget_recent-comments
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
Everything seems fine, however this is by no means 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 items
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/wpfrank-companion/inc/cryptoairdrop/front-page/wpfrank-companion-cryptoairdrop-faq.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/wpfrank-companion/inc/businessexpo/front-page/wpfrank-companion-businessexpo-service.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/wpfrank-companion/inc/businessexpo/front-page/wpfrank-companion-businessexpo-slider.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpfrank-companion/inc/businessexpo/customizer/hompage-layout/customizer_homepage_layout.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/wpfrank-companion/inc/cryptoairdrop/front-page/wpfrank-companion-cryptoairdrop-roadmap.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/wpfrank-companion/inc/cryptoairdrop/front-page/wpfrank-companion-cryptoairdrop-contact.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/wpfrank-companion/inc/businessexpo/front-page/wpfrank-companion-businessexpo-sponsors.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpfrank-companion/inc/businessexpo/customizer/businessexpo-default-data/funfact-customizer-default-data.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/wpfrank-companion/inc/businessexpo/front-page/wpfrank-companion-businessexpo-team.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/wpfrank-companion/inc/cryptoairdrop/front-page/wpfrank-companion-cryptoairdrop-feature.php:8
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
wpfrank-companion/wpfrank-companion.php Passed 13 tests
The entry point to "WPFrank Companion" version 0.3.0 is a PHP file that has certain tags in its header comment area
71 characters long description:
WPFrank Companion plugin provides themes extra settings for front page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected7,950 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 821 | 763 | 7,950 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 1.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 48 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 3.89MB with 2.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/businessexpo/img/icons/right-sidebar.png | 11.69KB | 5.84KB | ▼ 50.03% |
inc/cryptoairdrop/img/bnb.png | 1.23KB | 1.23KB | 0.00% |
inc/cryptoairdrop/img/faq.png | 212.64KB | 52.83KB | ▼ 75.16% |
inc/cryptoairdrop/img/currency.png | 39.47KB | 14.31KB | ▼ 63.73% |
inc/cryptoairdrop/img/about.png | 384.80KB | 83.21KB | ▼ 78.38% |