Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼202.07ms] Passed 4 tests
Analyzing server-side resources used by WP Theme Test
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 29.27 ▲5.34 |
Dashboard /wp-admin | 3.13 ▲0.06 | 37.07 ▼3.84 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 33.39 ▼2.76 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 74.71 ▼803.52 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 27.93 ▲1.83 |
WP Theme Test /wp-admin/themes.php?page=wp-theme-test | 3.06 | 25.22 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wp-theme-test |
Browser metrics Passed 4 tests
Checking browser requirements for WP Theme Test
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲79 | 15.91 ▼0.04 | 7.43 ▲1.97 | 76.19 ▼0.16 |
Dashboard /wp-admin | 2,935 ▲43 | 6.08 ▼0.06 | 114.93 ▼15.61 | 169.50 ▼0.94 |
Posts /wp-admin/edit.php | 2,745 ▲8 | 3.24 ▲0.00 | 69.06 ▲3.51 | 138.01 ▼1.71 |
Add New Post /wp-admin/post-new.php | 3,757 ▲22 | 15.63 ▼2.48 | 420.64 ▼33.08 | 161.30 ▼11.53 |
Media Library /wp-admin/upload.php | 1,754 ▲2 | 5.54 ▲0.01 | 146.99 ▲8.36 | 183.50 ▼2.39 |
WP Theme Test /wp-admin/themes.php?page=wp-theme-test | 1,482 | 3.70 | 102.02 | 145.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-theme-test/wp-theme-test.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPTT_Core' not found in wp-content/plugins/wp-theme-test/classes/class.admin.php:2
- > 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 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:
- Requires at least: Version format is invalid
wp-theme-test/wp-theme-test.php 92% from 13 tests
"WP Theme Test" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin479 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 73 | 100 | 359 |
PO File | 2 | 27 | 0 | 94 |
CSS | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin