Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/traverse-digital/inc/plugin-settings.php+29
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.88MB] [CPU: ▼54.75ms] Passed 4 tests
Analyzing server-side resources used by Traverse Digital
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.34 | 5.68 ▼33.76 |
Dashboard /wp-admin | 2.15 ▼1.20 | 6.66 ▼51.52 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 7.01 ▼42.34 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 7.60 ▼91.39 |
Media Library /wp-admin/upload.php | 2.15 ▼1.09 | 6.24 ▼24.97 |
Traverse Digital /wp-admin/options-general.php?page=traverse-digital-settings | 2.15 | 6.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Traverse Digital
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.55 ▼0.74 | 1.83 ▲0.06 | 37.91 ▼5.99 |
Dashboard /wp-admin | 2,219 ▲37 | 5.85 ▲0.73 | 95.87 ▼8.57 | 42.82 ▼3.94 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.01 ▼0.05 | 38.04 ▼0.55 | 32.67 ▼3.99 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.18 ▼0.04 | 644.94 ▼45.56 | 50.91 ▼13.96 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.20 ▼0.02 | 97.40 ▼17.17 | 40.70 ▼6.23 |
Traverse Digital /wp-admin/options-general.php?page=traverse-digital-settings | 864 | 2.17 | 22.68 | 28.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/traverse-digital/inc/plugin-settings.php+29
count(): Parameter must be an array or an object that implements Countable
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=traverse-digital-settings
- > Warning in wp-content/plugins/traverse-digital/inc/plugin-settings.php+29
count(): Parameter must be an array or an object that implements Countable
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=traverse-digital-settings
- > Notice in wp-content/plugins/traverse-digital/inc/plugin-settings.php+155
Accessing static property TD_Settings::$options as non static
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=traverse-digital-settings
- > Notice in wp-content/plugins/traverse-digital/inc/plugin-settings.php+155
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/traverse-digital/traverse.digital.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Screenshots: Screenshot #1 (This is what you could add to your site. Cool, right?!) image missing
traverse-digital/traverse.digital.php 85% from 13 tests
This is the main PHP file of "Traverse Digital" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("traverse-digital.php" instead of "traverse.digital.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
Success! There were no dangerous files found in this plugin461 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 68 | 96 | 408 |
JavaScript | 1 | 5 | 12 | 48 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin