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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.84ms] Passed 4 tests
An overview of server-side resources used by GatorLeads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 37.78 ▼2.29 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.74 ▼4.23 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.80 ▼3.32 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.38 ▼0.52 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.56 ▼1.53 |
GatorLeads /wp-admin/options-general.php?page=gatorleads | 3.29 | 31.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
gatorleads_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GatorLeads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 14.41 ▲0.06 | 1.73 ▼0.64 | 46.61 ▼5.66 |
Dashboard /wp-admin | 2,207 ▲19 | 5.81 ▼0.07 | 97.93 ▼7.89 | 35.86 ▼7.63 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.02 | 38.25 ▲1.90 | 31.93 ▲2.73 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 23.35 ▼0.13 | 622.90 ▼38.54 | 52.97 ▼0.86 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.22 ▲0.01 | 93.97 ▼18.80 | 42.48 ▼11.90 |
GatorLeads /wp-admin/options-general.php?page=gatorleads | 964 | 2.36 | 55.29 | 27.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/gatorleads/includes/ajax_functions.php
- > /wp-content/plugins/gatorleads/admin.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gatorleads/gatorleads.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: leads, tracking
gatorleads/gatorleads.php Passed 13 tests
The primary PHP file in "GatorLeads" version 1.0.6 is used by WordPress to initiate all plugin functionality
65 characters long description:
Inserts the GatorLeads tracker into the footer of Wordpress pages
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 detected678 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 173 | 125 | 617 |
JavaScript | 1 | 8 | 0 | 61 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected