Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.53ms] Passed 4 tests
An overview of server-side resources used by Copyright Safeguard Footer Notice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.49 ▲1.94 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.82 ▼11.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.25 ▼6.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.10 ▼13.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.73 ▲3.71 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Copyright Safeguard Footer Notice
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.25 ▼0.10 | 1.86 ▲0.33 | 39.23 ▼3.20 |
Dashboard /wp-admin | 2,202 ▲27 | 5.64 ▼0.07 | 81.68 ▼30.94 | 36.71 ▼7.57 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.04 | 35.04 ▼5.66 | 36.52 ▼4.33 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 22.94 ▼0.18 | 632.23 ▼21.40 | 53.87 ▲4.47 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.00 | 97.21 ▲1.51 | 40.70 ▼1.47 |
Copyright Safeguard /wp-admin/CopyrightSafeguard-fn-admin.php | 26 | 0.42 | 0.08 | 13.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/copyright-safeguard-footer-notice/CopyrightSafeguard-fn-admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copyright-safeguard-footer-notice/CopyrightSafeguard-fn.php:34
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/CopyrightSafeguard-fn-admin.php
- > Network (severe)
wp-admin/CopyrightSafeguard-fn-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #2 is missing in copyright-safeguard-footer-notice/assets to your readme.txt
copyright-safeguard-footer-notice/CopyrightSafeguard-fn.php 92% from 13 tests
Analyzing the main PHP file in "Copyright Safeguard Footer Notice" version 3.0
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("copyright-safeguard-footer-notice.php" instead of "CopyrightSafeguard-fn.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
Success! There were no dangerous files found in this plugin145 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 13 | 22 | 145 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin