Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.93MB] [CPU: ▼35.45ms] Passed 4 tests
Server-side resources used by FMTC Affiliate Disclosure
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 38.98 ▼2.44 |
Dashboard /wp-admin | 3.01 ▼0.29 | 22.15 ▼29.36 |
Posts /wp-admin/edit.php | 3.01 ▼0.34 | 22.78 ▼24.79 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.87 | 23.39 ▼72.00 |
Media Library /wp-admin/upload.php | 3.01 ▼0.21 | 21.37 ▼15.66 |
Affiliate Disclosure /wp-admin/options-general.php?page=fmtc-affiliate-disclosure | 3.01 | 24.25 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
fmtc_affiliate_disclosure_text |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for FMTC Affiliate Disclosure
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.30 ▼1.08 | 1.68 ▼0.53 | 41.76 ▼1.39 |
Dashboard /wp-admin | 2,210 ▲25 | 5.81 ▼0.10 | 100.98 ▼0.82 | 37.79 ▼8.28 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▼0.00 | 39.59 ▲4.55 | 35.49 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,539 ▲18 | 23.43 ▲0.23 | 683.97 ▼3.11 | 58.53 ▲2.86 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.28 ▲0.08 | 94.38 ▼2.52 | 43.39 ▼5.16 |
Affiliate Disclosure /wp-admin/options-general.php?page=fmtc-affiliate-disclosure | 812 | 2.05 | 22.42 | 29.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fmtc-affiliate-disclosure
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=fmtc-affiliate-disclosure
- > Notice in wp-content/plugins/fmtc-affiliate-disclosure/fmtc-affiliate-disclosure.php+96
Trying to access array offset on value of type null
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fmtc-affiliate-disclosure/fmtc-affiliate-disclosure.php
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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: disclosure, affiliate
fmtc-affiliate-disclosure/fmtc-affiliate-disclosure.php Passed 13 tests
"FMTC Affiliate Disclosure" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
Add FTC-Compliant Disclosure statement to the beginning of your blog posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected79 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 29 | 79 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 1 | |
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 | 8 | |
▷ Named functions | 8 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/disclosure.png | 6.44KB | 3.34KB | ▼ 48.10% |