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.19MB] [CPU: ▼2.16ms] Passed 4 tests
A check of server-side resources used by Testimonials King Light
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 44.02 ▼1.43 |
Dashboard /wp-admin | 3.49 ▲0.19 | 55.59 ▼3.95 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.49 ▼0.84 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.18 | 88.18 ▼2.42 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 48.38 ▲9.00 |
All Testimonial /wp-admin/edit.php?post_type=gmctk_testimonial | 3.46 | 39.14 |
Add New /wp-admin/post-new.php?post_type=gmctk_testimonial | 3.56 | 56.72 |
Groups /wp-admin/edit-tags.php?taxonomy=gmctk_testimonial_group&post_type=gmctk_testimonial | 3.41 | 38.08 |
Options /wp-admin/edit.php?post_type=gmctk_testimonial&page=gmctk_options | 3.45 | 36.31 |
Server storage [IO: ▲0.15MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
gmctk_general_options |
Browser metrics Passed 4 tests
Testimonials King Light: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.27 ▼1.11 | 1.86 ▲0.04 | 50.72 ▲8.14 |
Dashboard /wp-admin | 2,228 ▲43 | 5.87 ▼0.03 | 112.64 ▲3.63 | 69.61 ▲24.35 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.02 ▲0.05 | 35.89 ▼0.85 | 33.42 ▼7.53 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.08 ▼0.20 | 784.19 ▲111.55 | 54.57 ▼6.07 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.24 ▲0.05 | 103.10 ▼9.23 | 76.79 ▲28.08 |
All Testimonial /wp-admin/edit.php?post_type=gmctk_testimonial | 1,145 | 2.27 | 34.72 | 31.78 |
Add New /wp-admin/post-new.php?post_type=gmctk_testimonial | 2,452 | 7.65 | 168.22 | 123.86 |
Groups /wp-admin/edit-tags.php?taxonomy=gmctk_testimonial_group&post_type=gmctk_testimonial | 1,298 | 2.14 | 31.84 | 29.84 |
Options /wp-admin/edit.php?post_type=gmctk_testimonial&page=gmctk_options | 2,281 | 3.15 | 80.16 | 28.60 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/testimonial-king-light/includes/template/one/footer.php
- > /wp-content/plugins/testimonial-king-light/includes/template/one/header.php
- 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: gmctk_options in wp-content/plugins/testimonial-king-light/includes/template/one/header.php on line 26
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/testimonial-king-light/includes/template/one/content.php on line 4
- > PHP Notice
Undefined variable: gmctk_options in wp-content/plugins/testimonial-king-light/includes/template/one/header.php on line 3
- > PHP Notice
Undefined variable: gmctk_options in wp-content/plugins/testimonial-king-light/includes/template/one/header.php on line 18
- > PHP Notice
Undefined variable: gmctk_options in wp-content/plugins/testimonial-king-light/includes/template/one/header.php on line 32
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/testimonial-king-light/includes/template/one/header.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/testimonial-king-light/includes/template/one/content.php on line 22
- > PHP Notice
Undefined variable: gmctk_options in wp-content/plugins/testimonial-king-light/includes/template/one/header.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/testimonial-king-light/includes/template/one/header.php on line 32
- > PHP Notice
Undefined variable: gmctk_options in wp-content/plugins/testimonial-king-light/includes/template/one/header.php on line 4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: testimonials, testimonials slider, random testimonials
testimonial-king-light/testimoinal-king.php 92% from 13 tests
"Testimonials King Light" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("testimonial-king-light.php" instead of "testimoinal-king.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,734 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 216 | 99 | 1,137 |
CSS | 3 | 70 | 6 | 525 |
JavaScript | 4 | 14 | 27 | 72 |
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.47 |
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 | 31 | |
▷ Named functions | 31 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/rating-icon.png | 3.67KB | 2.13KB | ▼ 41.83% |
admin/images/gmctk.PNG | 1.55KB | 1.39KB | ▼ 9.85% |