Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.47MB] [CPU: ▼0.94ms] Passed 4 tests
This is a short check of server-side resources used by Patterns Kit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.94 ▲1.48 | 50.60 ▲10.24 |
Dashboard /wp-admin | 4.78 ▲1.44 | 58.78 ▼6.76 |
Posts /wp-admin/edit.php | 4.83 ▲1.48 | 51.81 ▲7.17 |
Add New Post /wp-admin/post-new.php | 7.38 ▲1.50 | 87.32 ▼14.40 |
Media Library /wp-admin/upload.php | 4.71 ▲1.48 | 44.83 ▲12.22 |
Server storage [IO: ▲33.02MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- Try to limit filesystem usage to 25MB (currently using 33.02MB)
Filesystem: 270 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Patterns Kit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲137 | 13.99 ▼0.38 | 8.75 ▲6.57 | 44.69 ▲1.35 |
Dashboard /wp-admin | 2,203 ▲12 | 4.86 ▼0.05 | 111.79 ▲0.61 | 44.23 ▼8.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.01 | 34.77 ▼4.02 | 32.68 ▼4.78 |
Add New Post /wp-admin/post-new.php | 1,520 ▼13 | 23.19 ▲0.16 | 687.25 ▲16.23 | 58.98 ▲10.26 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▼0.02 | 94.84 ▼8.82 | 43.62 ▼0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
- 36× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/patterns-kit/patterns/about/general/about-1.php
- > /wp-content/plugins/patterns-kit/patterns/services/10.php
- > /wp-content/plugins/patterns-kit/patterns/about/general/about-7.php
- > /wp-content/plugins/patterns-kit/patterns/about/general/about-6.php
- > /wp-content/plugins/patterns-kit/patterns/contact-us/contact1.php
- > /wp-content/plugins/patterns-kit/patterns/sucess-counter/counter2.php
- > /wp-content/plugins/patterns-kit/patterns/about/general/about-2.php
- > /wp-content/plugins/patterns-kit/patterns/progress-bar/progress-3.php
- > /wp-content/plugins/patterns-kit/patterns/sidebar.php
- > /wp-content/plugins/patterns-kit/patterns/accordion/accordian-1.php
- 82× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/patterns-kit/patterns/hero/hero-5.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/patterns-kit/patterns/about/fse/about-us.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/patterns-kit/patterns/testimonials/testimonial-1.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/patterns-kit/patterns/hero/hero-1.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/patterns-kit/patterns/trainers.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/patterns-kit/patterns/teams/team-4.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/patterns-kit/patterns/contact-us/contact.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/patterns-kit/patterns/about/general/about-11.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/patterns-kit/patterns/hero/hero-4.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/patterns-kit/patterns/planning.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
2 plugin tags: patterns, pattern
patterns-kit/plugins.php 92% from 13 tests
The main PHP file in "Patterns Kit" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("patterns-kit.php" instead of "plugins.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected10,903 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 1,706 | 725 | 10,395 |
CSS | 2 | 83 | 25 | 428 |
JavaScript | 2 | 19 | 5 | 52 |
SVG | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
90 PNG files occupy 26.61MB with 6.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-1.png | 0.94KB | 0.98KB | 0.00% |
assets/images/teams/tam-it-1.png | 400.49KB | 324.85KB | ▼ 18.89% |
assets/images/services/service-handyman-3.png | 719.40KB | 325.43KB | ▼ 54.76% |
assets/images/counter/counter-2.png | 3.44KB | 1.67KB | ▼ 51.36% |
assets/images/icon-5.png | 0.89KB | 0.93KB | 0.00% |