Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.89ms] Passed 4 tests
Server-side resources used by Cot Tackle
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.36 ▼21.09 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.81 ▲3.29 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.00 ▲4.71 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 84.71 ▼3.85 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.13 ▲2.11 |
Project Categories /wp-admin/edit-tags.php?taxonomy=projects-category&post_type=projects | 3.35 | 30.75 |
All Projects /wp-admin/edit.php?post_type=projects | 3.40 | 38.10 |
Add New Project /wp-admin/post-new.php?post_type=projects | 3.49 | 61.69 |
All Employees /wp-admin/edit.php?post_type=employees | 3.40 | 40.50 |
Add New Employee /wp-admin/post-new.php?post_type=employees | 3.49 | 50.34 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Cot Tackle
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 14.48 ▼0.26 | 1.99 ▼0.31 | 38.66 ▼15.70 |
Dashboard /wp-admin | 2,273 ▲85 | 4.83 ▼1.03 | 115.12 ▲8.76 | 42.99 ▲1.88 |
Posts /wp-admin/edit.php | 2,158 ▲66 | 2.04 ▼0.00 | 41.63 ▲6.18 | 38.70 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,595 ▲53 | 23.54 ▲5.28 | 611.97 ▲4.82 | 53.58 ▼23.90 |
Media Library /wp-admin/upload.php | 1,458 ▲73 | 4.30 ▲0.08 | 96.22 ▼5.42 | 42.93 ▼3.30 |
Project Categories /wp-admin/edit-tags.php?taxonomy=projects-category&post_type=projects | 1,326 | 2.31 | 31.68 | 35.19 |
All Projects /wp-admin/edit.php?post_type=projects | 1,128 | 1.94 | 31.42 | 32.19 |
Add New Project /wp-admin/post-new.php?post_type=projects | 2,412 | 7.61 | 190.42 | 69.62 |
All Employees /wp-admin/edit.php?post_type=employees | 1,128 | 1.94 | 30.59 | 30.84 |
Add New Employee /wp-admin/post-new.php?post_type=employees | 2,361 | 7.76 | 167.13 | 56.03 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cot-tackle/cot-tackle.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cot-tackle/inc/post-type/post-type-projects.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cot-tackle/inc/post-type/post-type-employees.php:73
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: custom post types, cot theme, custom fields
cot-tackle/cot-tackle.php Passed 13 tests
"Cot Tackle" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
31 characters long description:
Extended feature for Cot theme.
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
Good job! No executable or dangerous file extensions detected333 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 89 | 101 | 333 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected