Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > 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.20MB] [CPU: ▲2.31ms] Passed 4 tests
Analyzing server-side resources used by Quiz Leads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 49.73 ▲7.61 |
Dashboard /wp-admin | 3.50 ▲0.20 | 53.18 ▲0.30 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 55.07 ▲3.56 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 97.51 ▼2.25 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 47.06 ▲14.64 |
Add New /wp-admin/post-new.php?post_type=quizleads | 3.54 | 50.42 |
Quiz Lead Optins /wp-admin/edit.php?post_type=quizleads | 3.51 | 54.44 |
Server storage [IO: ▲0.33MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_quizleads_tbl |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Quiz Leads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲194 | 13.65 ▼0.74 | 9.61 ▲7.89 | 54.83 ▲11.16 |
Dashboard /wp-admin | 2,230 ▲42 | 5.90 ▲1.02 | 99.45 ▼22.04 | 83.70 ▲38.29 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 1.99 ▼0.03 | 38.83 ▲3.94 | 36.51 ▲4.40 |
Add New Post /wp-admin/post-new.php | 1,563 ▲16 | 23.11 ▲4.93 | 707.92 ▲118.77 | 64.28 ▲12.56 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.13 ▼0.13 | 110.58 ▲17.02 | 79.34 ▲36.84 |
Add New /wp-admin/post-new.php?post_type=quizleads | 2,940 | 7.73 | 179.42 | 157.65 |
Quiz Lead Optins /wp-admin/edit.php?post_type=quizleads | 1,651 | 2.02 | 33.93 | 32.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_quizleads_tbl
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=quizleads
- > Warning in wp-content/plugins/quizleads/admin_settings.php+281
in_array() expects parameter 2 to be array, null given
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/quizleads/templates/1/index.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 require attention:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
- Screenshots: Screenshot #5 (Form to generate Lead) image required
quizleads/init.php 92% from 13 tests
"Quiz Leads" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("quizleads.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,687 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 294 | 43 | 985 |
CSS | 5 | 14 | 10 | 656 |
JavaScript | 1 | 0 | 0 | 46 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.03MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/1/img/theme01-background.png | 28.59KB | 31.41KB | 0.00% |
images/logo1.png | 0.65KB | 0.68KB | 0.00% |
images/template.png | 1.65KB | 1.43KB | ▼ 13.40% |
images/logo.png | 0.77KB | 0.77KB | 0.13% |