Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/flovidy/Flovidy_Plugin.php+32
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.73ms] Passed 4 tests
A check of server-side resources used by Flovidy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.00 ▼4.80 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.06 ▼4.03 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 51.02 ▲4.94 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 82.58 ▼6.98 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.47 ▲0.90 |
Flovidy /wp-admin/options-general.php?page=Flovidy_PluginSettings | 3.32 | 29.75 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 21 new options
New tables |
---|
wp_ai_link |
New WordPress options |
---|
can_compress_scripts |
Flovidy_Plugin_de_ref |
Flovidy_Plugin_es_ref |
Flovidy_Plugin_uk_ref |
Flovidy_Plugin_us_ref |
Flovidy_Plugin_br_ref |
widget_recent-comments |
Flovidy_Plugin_cn_ref |
Flovidy_Plugin__installed |
Flovidy_Plugin_au_ref |
... |
Browser metrics Passed 4 tests
Flovidy: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲167 | 13.94 ▼0.42 | 5.71 ▲3.58 | 38.94 ▼6.15 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.03 | 109.15 ▼8.18 | 39.19 ▼4.88 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.07 | 40.43 ▲4.43 | 34.87 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 18.04 ▼5.15 | 582.69 ▼37.74 | 52.22 ▲4.95 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.15 ▼0.03 | 96.16 ▲0.60 | 43.06 ▲1.24 |
Flovidy /wp-admin/options-general.php?page=Flovidy_PluginSettings | 1,056 | 2.05 | 26.91 | 27.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_ai_link
- The uninstall procedure has failed, leaving 21 options in the database
- widget_theysaidso_widget
- Flovidy_Plugin_ca_ref
- widget_recent-comments
- Flovidy_Plugin_fr_ref
- can_compress_scripts
- Flovidy_Plugin_in_ref
- Flovidy_Plugin_de_ref
- theysaidso_admin_options
- db_upgraded
- Flovidy_Plugin_bitly_access_token
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flovidy/flovidy.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There were no tags found
flovidy/flovidy.php Passed 13 tests
The main PHP file in "Flovidy" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Localize amazon affiliate links to optimize affiliate commision income
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
There were no executable files found in this plugin1,027 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 88 | 26 | 711 |
Pascal | 1 | 47 | 1,560 | 283 |
JavaScript | 1 | 6 | 0 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 72.31% |
▷ Protected methods | 18 | 27.69% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin