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.12MB] [CPU: ▼4.72ms] Passed 4 tests
A check of server-side resources used by Plugin Dependencies
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.72 ▼3.11 |
Dashboard /wp-admin | 3.43 ▲0.13 | 49.14 ▲1.98 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.47 ▲1.30 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.97 ▼19.06 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.62 ▲8.09 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Plugin Dependencies
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.14 | 1.70 ▼0.21 | 37.21 ▼10.24 |
Dashboard /wp-admin | 2,203 ▲15 | 4.85 ▼1.03 | 110.32 ▲8.07 | 38.59 ▼8.66 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.01 | 40.19 ▼0.25 | 34.77 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 18.65 ▲0.92 | 630.93 ▲34.40 | 63.25 ▲14.44 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.19 ▼0.01 | 93.52 ▼5.44 | 40.95 ▼0.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- 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
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
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 is_admin() in wp-content/plugins/plugin-dependencies/plugin-dependencies.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in plugin-dependencies/assets to your readme.txt
plugin-dependencies/plugin-dependencies.php Passed 13 tests
"Plugin Dependencies" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Prevent activating plugins that don't have all their dependencies satisfied
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected623 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 151 | 165 | 523 |
PO File | 2 | 25 | 35 | 100 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 30 | |
▷ Static methods | 30 | 100.00% |
▷ Public methods | 22 | 73.33% |
▷ Protected methods | 5 | 16.67% |
▷ Private methods | 3 | 10.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG images were found in this plugin