Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+542
Use of undefined constant FS_CHMOD_DIR - assumed 'FS_CHMOD_DIR' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.04MB] [CPU: ▲4.22ms] Passed 4 tests
Server-side resources used by Dedicated Transients
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 33.04 ▲6.22 |
Dashboard /wp-admin | 3.10 ▲0.03 | 37.64 ▼4.19 |
Posts /wp-admin/edit.php | 3.16 ▲0.04 | 37.85 ▲3.74 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 1,038.27 ▲353.43 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 35.09 ▲11.12 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- Illegal file modification detected: 1 file (1.27KB) outside of "wp-content/plugins/dedicated-transients/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/0_dedicated_transients.php
Filesystem: 5 new files
Database: 1 new table, no new options
New tables |
---|
wp_transients |
Browser metrics Passed 4 tests
A check of browser resources used by Dedicated Transients
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲104 | 15.67 ▲0.39 | 9.16 ▲3.90 | 77.90 ▲0.90 |
Dashboard /wp-admin | 2,909 ▲13 | 6.09 ▼0.12 | 127.12 ▼4.04 | 175.64 ▲6.39 |
Posts /wp-admin/edit.php | 2,750 ▲13 | 3.24 ▲0.00 | 63.10 ▼1.19 | 130.92 ▼6.17 |
Add New Post /wp-admin/post-new.php | 3,920 ▲112 | 19.20 ▲0.08 | 457.25 ▼18.57 | 175.49 ▼3.38 |
Media Library /wp-admin/upload.php | 1,762 ▲13 | 5.47 ▲0.00 | 153.57 ▲12.56 | 187.79 ▲8.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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
Good news, no errors were detected
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dedicated-transients/0_dedicated_transients.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/dedicated-transients/dedicated-transients.php:15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== dedicated-transients ===
)
dedicated-transients/dedicated-transients.php Passed 13 tests
The main PHP file in "Dedicated Transients" ver. 0.1.10 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
WordPress plugin to re-route transient storage to dedicated tables
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
Success! There were no dangerous files found in this plugin251 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 44 | 74 | 251 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There were not PNG files found in your plugin