Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.47ms] Passed 4 tests
This is a short check of server-side resources used by ITP Cookie Saver - Convert javascript cookies to server cookies
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.43 ▼9.73 |
Dashboard /wp-admin | 3.33 ▼0.01 | 52.35 ▼17.95 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 62.48 ▲11.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.91 ▼6.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 40.09 ▲4.02 |
ITP Cookie Saver /wp-admin/options-general.php?page=nsc_ics_settings | 3.27 | 35.33 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ITP Cookie Saver - Convert javascript cookies to server cookies
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.27 ▼0.11 | 1.71 ▼0.17 | 41.04 ▼1.55 |
Dashboard /wp-admin | 2,202 ▲25 | 5.67 ▲0.07 | 92.16 ▲1.49 | 42.61 ▲2.33 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.05 ▲0.04 | 40.93 ▼0.41 | 36.41 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,548 ▲4 | 23.33 ▲0.19 | 707.20 ▲15.43 | 53.33 ▼0.32 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.27 ▲0.09 | 101.99 ▲1.84 | 43.50 ▼3.37 |
ITP Cookie Saver /wp-admin/options-general.php?page=nsc_ics_settings | 888 | 2.05 | 23.49 | 26.49 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/itp-cookie-saver/uninstall.php+7
Constant NSC_ics_PLUGINPATH already defined
- Uninstaller has failed for this plugin, leaving 10 files (0.02MB) in the plugin directory
- (new file) settings.json
- (new file) class/class-de-nikelschubert-nsc_ics.php
- (new file) class/class_nsc_ics_backend.php
- (new file) class/class_nsc_ics.php
- (new file) readme.txt
- (new file) class/class_nsc_ics_frontend.php
- (new file) admin/tpl/admin.php
- (new file) nsc_itp-cookie-saver.php
- (new file) frontend/js/nsc_ics_cookiesaver.js
- (new file) uninstall.php
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/itp-cookie-saver/uninstall.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: objSettings in wp-content/plugins/itp-cookie-saver/admin/tpl/admin.php on line 15
- > PHP Notice
Trying to get property 'setting_page_fields' of non-object in wp-content/plugins/itp-cookie-saver/admin/tpl/admin.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'de_nikelschubert_nsc_ics' not found in wp-content/plugins/itp-cookie-saver/class/class_nsc_ics_backend.php:3
- > PHP Notice
Undefined variable: objSettings in wp-content/plugins/itp-cookie-saver/admin/tpl/admin.php on line 8
- > PHP Notice
Trying to get property 'tabs' of non-object in wp-content/plugins/itp-cookie-saver/admin/tpl/admin.php on line 8
- > PHP Notice
Trying to get property 'active_tab_index' of non-object in wp-content/plugins/itp-cookie-saver/admin/tpl/admin.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/itp-cookie-saver/nsc_itp-cookie-saver.php:25
- > PHP Fatal error
Uncaught Error: Class 'de_nikelschubert_nsc_ics' not found in wp-content/plugins/itp-cookie-saver/class/class_nsc_ics_frontend.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/itp-cookie-saver/admin/tpl/admin.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/itp-cookie-saver/admin/tpl/admin.php:21
- > PHP Notice
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Contributors: Contributors not specified
itp-cookie-saver/nsc_itp-cookie-saver.php 85% from 13 tests
"ITP Cookie Saver - Convert javascript cookies to server cookies" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("itp-cookie-saver.php" instead of "nsc_itp-cookie-saver.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin408 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 65 | 27 | 345 |
JSON | 1 | 0 | 0 | 58 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 67.86% |
▷ Protected methods | 3 | 10.71% |
▷ Private methods | 6 | 21.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin