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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.52ms] Passed 4 tests
Server-side resources used by Project description
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.39 ▼4.74 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.01 ▼5.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.14 ▼0.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.42 ▼3.51 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.39 ▲2.92 |
Project description /wp-admin/options-general.php?page=project-description | 3.23 | 33.06 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Project description
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 13.24 ▼1.13 | 1.51 ▼0.52 | 38.54 ▼7.62 |
Dashboard /wp-admin | 2,207 ▲19 | 4.88 ▼0.04 | 111.37 ▲0.69 | 39.89 ▼4.87 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.99 ▼0.01 | 39.08 ▲0.16 | 40.39 ▲5.30 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 23.31 ▲0.03 | 668.11 ▼53.33 | 62.97 ▲8.75 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.11 ▼0.18 | 110.01 ▲15.74 | 40.19 ▲0.20 |
Project description /wp-admin/options-general.php?page=project-description | 1,617 | 6.58 | 133.75 | 61.02 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=project-description
- > Notice in wp-content/plugins/project-description/template-settings.php+5
Undefined variable: settingsUpdated
SRP 0% 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/project-description/template-box.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function kantoniak\\is_admin() in wp-content/plugins/project-description/kantoniak-project-description.php:33
- > PHP Notice
Undefined variable: jumpEnabled in wp-content/plugins/project-description/template-box.php on line 4
- > PHP Notice
Undefined variable: settingsUpdated in wp-content/plugins/project-description/template-settings.php on line 5
- > PHP Notice
Undefined variable: showFromCat in wp-content/plugins/project-description/template-box.php on line 11
- > PHP Notice
Undefined variable: boxTitle in wp-content/plugins/project-description/template-box.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_dropdown_categories() in wp-content/plugins/project-description/template-settings.php:21
- > PHP Notice
Undefined variable: boxContents in wp-content/plugins/project-description/template-box.php on line 9
- > PHP Notice
Undefined variable: noCategorySelected in wp-content/plugins/project-description/template-settings.php on line 9
- > PHP Notice
Undefined variable: jumpEnabled in wp-content/plugins/project-description/template-box.php on line 24
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: preview, project, category page, project description
project-description/kantoniak-project-description.php 92% from 13 tests
This is the main PHP file of "Project description" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("project-description.php" instead of "kantoniak-project-description.php")
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
Good job! No executable or dangerous file extensions detected223 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 30 | 10 | 213 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 2 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.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
PNG images were not found in this plugin