Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.77MB] [CPU: ▼58.50ms] Passed 4 tests
A check of server-side resources used by Webiots Testimonial Showcase
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 6.98 ▼33.79 |
Dashboard /wp-admin | 2.23 ▼1.07 | 6.22 ▼48.28 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 7.48 ▼47.42 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.65 | 7.28 ▼104.43 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 6.53 ▼33.85 |
Category /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=app_testimonials | 2.24 | 6.34 |
Settings /wp-admin/edit.php?post_type=app_testimonials&page=testimonials-settings | 2.24 | 7.19 |
Add new Testimonials /wp-admin/post-new.php?post_type=app_testimonials | 2.24 | 6.64 |
All Testimonials /wp-admin/edit.php?post_type=app_testimonials | 2.24 | 9.21 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Webiots Testimonial Showcase
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 13.58 ▼0.79 | 9.81 ▲8.06 | 67.60 ▲19.97 |
Dashboard /wp-admin | 2,229 ▲52 | 5.58 ▼0.04 | 88.43 ▼3.13 | 40.32 ▼4.81 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.05 ▲0.06 | 40.75 ▲1.98 | 37.99 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,576 ▲22 | 23.03 ▲4.94 | 670.83 ▲35.80 | 62.78 ▼2.91 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.28 ▲0.07 | 101.21 ▲6.98 | 45.31 ▲3.68 |
Category /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=app_testimonials | 1,311 | 2.15 | 32.61 | 31.65 |
Settings /wp-admin/edit.php?post_type=app_testimonials&page=testimonials-settings | 849 | 2.03 | 26.67 | 26.33 |
Add new Testimonials /wp-admin/post-new.php?post_type=app_testimonials | 2,401 | 7.32 | 153.94 | 113.96 |
All Testimonials /wp-admin/edit.php?post_type=app_testimonials | 1,125 | 2.00 | 29.94 | 31.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/webiots-testimonials/includes/functions.php+37
Use of undefined constant TESTIMONAILS_DIR - assumed 'TESTIMONAILS_DIR' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=app_testimonials
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/webiots-testimonials/includes/functions.php+37
Use of undefined constant TESTIMONAILS_DIR - assumed 'TESTIMONAILS_DIR' (this will throw an Error in a future version of PHP)
SRP 50% 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
Almost there! Just fix the following items
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/webiots-testimonials/index.php on line 22
- > PHP Notice
Undefined variable: loop in wp-content/plugins/webiots-testimonials/templates/slider/slide1.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/webiots-testimonials/templates/slider/slide2.php:6
- > PHP Notice
Undefined variable: loop in wp-content/plugins/webiots-testimonials/templates/slider/slide4.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/webiots-testimonials/templates/slider/video.php:7
- > PHP Warning
include_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/webiots-testimonials/index.php on line 22
- > PHP Notice
Undefined variable: loop in wp-content/plugins/webiots-testimonials/templates/slider/slide2.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/webiots-testimonials/templates/slider/slide1.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/webiots-testimonials/templates/slider/slide4.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/webiots-testimonials/templates/slider/slide3.php:7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=app_testimonials
- > Network (severe)
wp-content/plugins/webiots-testimonials/includes//js/admin.js?ver=1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (grid layout), #2 (list layout), #3 (video layout)
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
webiots-testimonials/index.php 85% from 13 tests
The main PHP script in "Webiots Testimonial Showcase" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("webiots-testimonials.php" instead of "index.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
Success! There were no dangerous files found in this plugin3,711 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 828 | 45 | 2,065 |
PHP | 8 | 232 | 118 | 996 |
CSS | 4 | 73 | 14 | 637 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 60.20KB | 17.22KB | ▼ 71.39% |
screenshot-2.png | 75.02KB | 20.79KB | ▼ 72.29% |
screenshot-3.png | 36.96KB | 10.51KB | ▼ 71.57% |
screenshot-4.png | 29.81KB | 9.57KB | ▼ 67.88% |