Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.71MB] [CPU: ▲27.50ms] Passed 4 tests
A check of server-side resources used by Start A Fire
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 46.77 ▲0.81 |
Dashboard /wp-admin | 3.16 ▼0.15 | 99.15 ▲43.25 |
Posts /wp-admin/edit.php | 3.30 ▼0.06 | 107.94 ▲59.77 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.64 | 102.45 ▲6.16 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 106.18 ▲64.41 |
Start A Fire /wp-admin/options-general.php?page=startafire-settings-menu | 3.14 | 92.14 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
saf_token |
saf_first_activation |
saf_links_changed_in_posts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Start A Fire
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.62 ▼0.61 | 2.05 ▼0.30 | 45.15 ▲3.10 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.04 | 107.27 ▲6.59 | 42.90 ▲2.28 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.04 ▲0.02 | 37.93 ▼2.55 | 36.51 ▼4.59 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.28 ▲0.08 | 675.37 ▼35.61 | 56.89 ▲4.10 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.23 ▲0.01 | 98.35 ▼7.44 | 47.19 ▼2.42 |
Start A Fire /wp-admin/options-general.php?page=startafire-settings-menu | 797 | 2.26 | 27.57 | 28.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=startafire-settings-menu
- > Notice in wp-content/plugins/start-a-fire/saf-main.php+274
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=startafire-settings-menu
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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 fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/start-a-fire/saf-main.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/start-a-fire/saf-main.php:69
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=startafire-settings-menu
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=startafire-settings-menu - Access to XMLHttpRequest at 'https://api.startafire.com/user/getexcludeddomains?access_token=' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- > GET request to /wp-admin/options-general.php?page=startafire-settings-menu
- > Network (severe)
https://api.startafire.com/user/getexcludeddomains?access_token= - Failed to load resource: net::ERR_FAILED
Optimizations
Plugin configuration 96% 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
9 plugin tags: start a fire, marketing, share, marketing automation, links...
start-a-fire/saf-trigger.php 92% from 13 tests
The main file in "Start A Fire" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("start-a-fire.php" instead of "saf-trigger.php")
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
Everything looks great! No dangerous files found in this plugin1,076 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 133 | 146 | 674 |
CSS | 1 | 53 | 14 | 233 |
JavaScript | 2 | 23 | 24 | 169 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 31 | |
▷ Named functions | 29 | 93.55% |
▷ Anonymous functions | 2 | 6.45% |
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
PNG images were not found in this plugin