Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/stfcopyright/stfCopyright.php+25
date_default_timezone_set(): Timezone ID '' is invalid
Server metrics [RAM: ▼4.70MB] [CPU: ▼534,395.94ms] Passed 4 tests
Analyzing server-side resources used by stfCopyright
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.38 | 6.10 ▼48.70 |
Dashboard /wp-admin | 2.14 ▼12.38 | 6.67 ▼2,137,393.35 |
Posts /wp-admin/edit.php | 2.14 ▼1.25 | 7.29 ▼48.30 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.78 | 6.12 ▼93.42 |
Media Library /wp-admin/upload.php | 2.14 ▼1.13 | 6.69 ▼32.61 |
stfCopyright /wp-admin/options-general.php?page=stfcp | 2.15 | 7.61 |
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: 8 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_theysaidso_widget |
stf_tools_type |
stf_tools_freetext |
theysaidso_admin_options |
stf_tools |
stf_tools_owner |
stf_tools_iyear |
stf_tools_uyear |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
stfCopyright: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.39 | 1.62 ▼0.11 | 42.24 ▼2.21 |
Dashboard /wp-admin | 2,202 ▲28 | 5.59 ▼0.06 | 82.65 ▼16.94 | 43.68 ▲1.32 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▼0.02 | 39.08 ▲2.98 | 39.11 ▲4.63 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 22.86 ▼0.92 | 672.30 ▼21.46 | 53.35 ▼0.75 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▲0.05 | 97.29 ▼17.79 | 47.59 ▼1.91 |
stfCopyright /wp-admin/options-general.php?page=stfcp | 1,001 | 1.69 | 28.84 | 35.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/stfcopyright/stfCopyright.php+25
date_default_timezone_set(): Timezone ID '' is invalid
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=stfcp
- > Notice in wp-content/plugins/stfcopyright/stfCopyright.php+25
date_default_timezone_set(): Timezone ID '' is invalid
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stfcp
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stfcp
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/stfcopyright/stfCopyright.php:21
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
4 plugin tags: tag, copyright, copyright generator, footer
stfcopyright/stfCopyright.php 85% from 13 tests
"stfCopyright" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("stfcopyright.php" instead of "stfCopyright.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected430 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 62 | 249 |
PO File | 3 | 54 | 54 | 181 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin