Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.57ms] Passed 4 tests
Server-side resources used by Foreign Keys Pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.57 ▼6.22 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.48 ▼2.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.75 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.36 ▲4.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.82 ▲3.06 |
Server storage [IO: ▲0.05MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Foreign Keys Pro: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.57 ▼1.07 | 1.72 ▼0.32 | 36.84 ▼8.55 |
Dashboard /wp-admin | 2,206 ▲21 | 4.82 ▼1.05 | 109.40 ▼28.58 | 42.65 ▼2.55 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.04 | 39.31 ▲2.82 | 35.42 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 18.39 ▼4.90 | 629.74 ▼52.56 | 53.68 ▼2.04 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.01 | 95.72 ▼27.71 | 44.96 ▼3.07 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Unterminated comment starting line 4 in wp-content/plugins/foreign-keys-pro/includes/woocommerce.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/foreign-keys-pro/foreign-keys-pro.php:33
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== foreign-keys-pro ===
) - Screenshots: These screenshots do not have images: #1 (Example Screenshot), #2 (This is the second screen shot)
foreign-keys-pro/foreign-keys-pro.php Passed 13 tests
The main PHP script in "Foreign Keys Pro" version 1.0.0 is automatically included on every request by WordPress
57 characters long description:
A plugin to setup Foreign Keys in the WordPress Database.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin196 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 111 | 117 | 160 |
JSON | 1 | 0 | 0 | 13 |
XML | 1 | 3 | 9 | 12 |
Markdown | 1 | 9 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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 | 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