Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.80ms] Passed 4 tests
Analyzing server-side resources used by Cartograf Cookie filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.65 ▼2.52 |
Dashboard /wp-admin | 3.36 ▲0.01 | 51.88 ▼16.68 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.24 ▲0.83 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 100.18 ▼4.83 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 42.39 ▲3.90 |
Cartograf Cookie-filter Settings /wp-admin/options-general.php?page=cg_cookie_filter | 3.25 | 34.70 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
cg_cf_accept_scrollout |
cg_cf_text |
db_upgraded |
cg_cf_accept_timeout |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Cartograf Cookie filter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,005 ▲244 | 13.45 ▼0.84 | 14.31 ▲12.56 | 50.31 ▲7.25 |
Dashboard /wp-admin | 2,199 ▲25 | 5.63 ▼0.04 | 84.66 ▼16.51 | 39.24 ▼4.66 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.08 | 34.55 ▼4.03 | 35.38 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.31 ▲0.20 | 623.23 ▼49.32 | 52.75 ▼2.09 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.24 ▲0.04 | 100.52 ▼4.93 | 42.60 ▼6.07 |
Cartograf Cookie-filter Settings /wp-admin/options-general.php?page=cg_cookie_filter | 904 | 1.99 | 23.08 | 27.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- cg_cf_accept_timeout
- can_compress_scripts
- cg_cf_accept_scrollout
- db_upgraded
- theysaidso_admin_options
- cg_cf_text
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cartograf-cookie-filter/settings_page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cartograf-cookie-filter/settings_page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Soon to be available screenshot.)
cartograf-cookie-filter/cartograf-cookie-filter.php Passed 13 tests
This is the main PHP file of "Cartograf Cookie filter" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
88 characters long description:
Previene la instalación de cookies previa al consentimiento informado de los visitantes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected372 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 42 | 25 | 266 |
JavaScript | 1 | 16 | 1 | 80 |
CSS | 1 | 0 | 0 | 26 |
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.11 |
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 | 29 | |
▷ Named functions | 29 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo-cartograf.png | 20.28KB | 8.26KB | ▼ 59.28% |