Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.77ms] Passed 4 tests
An overview of server-side resources used by Theme Test Drive
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.72 ▲0.47 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.40 ▼1.95 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 48.23 ▼6.91 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 97.75 ▼14.68 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.94 ▲5.78 |
Theme Test Drive /wp-admin/themes.php?page=themedrive_options_page | 3.26 | 33.43 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Theme Test Drive
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.38 ▼0.14 | 2.05 ▲0.22 | 44.73 ▲1.25 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▼0.08 | 89.54 ▲1.69 | 42.97 ▲0.87 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▲0.01 | 38.76 ▼6.30 | 33.63 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.03 ▼0.14 | 681.77 ▲19.91 | 53.78 ▼9.44 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.30 ▲0.15 | 104.60 ▼3.31 | 45.81 ▲3.74 |
Theme Test Drive /wp-admin/themes.php?page=themedrive_options_page | 927 | 1.99 | 24.00 | 23.39 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/theme-test-drive/themedrive.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Admin panel for installing and previewing themes)
theme-test-drive/themedrive.php 92% from 13 tests
The principal PHP file in "Theme Test Drive" v. 2.9.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("theme-test-drive.php" instead of "themedrive.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin434 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 122 | 48 | 312 |
JavaScript | 1 | 5 | 10 | 122 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
i/rate.png | 0.64KB | 0.61KB | ▼ 5.16% |
bg.png | 8.02KB | 5.79KB | ▼ 27.86% |
screenshot-1.png | 7.86KB | 4.23KB | ▼ 46.10% |
i/p1.png | 13.17KB | 5.81KB | ▼ 55.89% |
screenshot-2.png | 56.89KB | 20.38KB | ▼ 64.18% |