Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.72ms] Passed 4 tests
A check of server-side resources used by Custom Post Types Relationships (CPTR)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.52 ▼0.96 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.77 ▼12.72 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.01 ▲3.54 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.16 ▼12.67 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.70 ▼0.52 |
Custom Post Types Relationships /wp-admin/options-general.php?page=ci_cptr_plugin | 3.22 | 29.84 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
ci_cptr_plugin |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
ci_cptr_plugin_version |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Types Relationships (CPTR)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.34 ▼1.41 | 1.85 ▲0.05 | 42.63 ▼3.07 |
Dashboard /wp-admin | 2,215 ▲26 | 5.80 ▲0.86 | 99.01 ▼13.01 | 38.59 ▼1.30 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.03 ▼0.02 | 39.88 ▲2.87 | 37.97 ▲6.61 |
Add New Post /wp-admin/post-new.php | 6,328 ▲4,809 | 25.85 ▲2.99 | 880.88 ▲259.89 | 65.63 ▲13.02 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.23 ▲0.08 | 123.24 ▲26.99 | 46.78 ▲1.49 |
Custom Post Types Relationships /wp-admin/options-general.php?page=ci_cptr_plugin | 975 | 2.15 | 23.57 | 29.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- ci_cptr_plugin_version
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant CPTR_DEFAULT_THUMB - assumed 'CPTR_DEFAULT_THUMB' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-post-types-relationships-cptr/cpr.php on line 16
- > PHP Warning
Use of undefined constant CPTR_DEFAULT_EXCERPT - assumed 'CPTR_DEFAULT_EXCERPT' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-post-types-relationships-cptr/cpr.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/custom-post-types-relationships-cptr/cptr.php:50
- > PHP Warning
Use of undefined constant CPTR_DEFAULT_THUMB_WIDTH - assumed 'CPTR_DEFAULT_THUMB_WIDTH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-post-types-relationships-cptr/cpr.php on line 17
- > PHP Warning
Use of undefined constant CPTR_DEFAULT_THUMB_HEIGHT - assumed 'CPTR_DEFAULT_THUMB_HEIGHT' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-post-types-relationships-cptr/cpr.php on line 18
- > PHP Warning
Use of undefined constant CPTR_VERSION - assumed 'CPTR_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-post-types-relationships-cptr/cpr.php on line 4
- > PHP Warning
Use of undefined constant CPTR_DEFAULT_EXCERPT_LENGTH - assumed 'CPTR_DEFAULT_EXCERPT_LENGTH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-post-types-relationships-cptr/cpr.php on line 15
- > PHP Warning
Use of undefined constant CPTR_DEFAULT_LIMIT - assumed 'CPTR_DEFAULT_LIMIT' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-post-types-relationships-cptr/cpr.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: related, post, post relationships, related posts, custom relations...
custom-post-types-relationships-cptr/cptr.php 92% from 13 tests
The principal PHP file in "Custom Post Types Relationships (CPTR)" v. 2.5.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-post-types-relationships-cptr.php" instead of "cptr.php")
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
Good job! No executable or dangerous file extensions detected842 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 197 | 66 | 733 |
JavaScript | 1 | 25 | 9 | 80 |
CSS | 3 | 2 | 1 | 29 |
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.39 |
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 | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/sortable.png | 0.21KB | 0.17KB | ▼ 16.82% |