Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.07ms] Passed 4 tests
Analyzing server-side resources used by Posts 2 Posts Relationships
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.28 ▲0.85 |
Dashboard /wp-admin | 3.33 ▲0.02 | 59.79 ▲7.04 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.77 ▼6.27 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.67 ▼0.75 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.28 ▲1.91 |
P2P Relationships /wp-admin/options-general.php?page=p2p-relationships-opts | 3.43 | 32.44 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_p2p_relationships |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
p2p-relationships |
can_compress_scripts |
Browser metrics Passed 4 tests
Posts 2 Posts Relationships: 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,827 ▲27 | 13.24 ▲0.07 | 1.96 ▲0.35 | 41.58 ▲4.30 |
Dashboard /wp-admin | 2,205 ▲13 | 5.10 ▲0.24 | 108.81 ▼2.56 | 37.43 ▼5.71 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.25 ▲0.19 | 37.61 ▼9.61 | 35.02 ▼3.72 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.48 ▲0.02 | 677.94 ▼20.59 | 37.77 ▼17.99 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.23 ▲0.07 | 95.81 ▼2.14 | 45.67 ▼3.28 |
P2P Relationships /wp-admin/options-general.php?page=p2p-relationships-opts | 1,347 | 2.31 | 31.72 | 28.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_p2p_relationships
- The uninstall procedure has failed, leaving 7 options in the database
- p2p-relationships
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: many-to-many, custom post types, posts relationships, posts 2 posts, posts to posts
posts-2-posts-relationships/posts-2-posts-relationships.php Passed 13 tests
The main PHP file in "Posts 2 Posts Relationships" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Efficient many-to-many connections between posts, pages and custom post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin15,234 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 3,149 | 1,073 | 12,155 |
CSS | 4 | 208 | 27 | 1,369 |
PHP | 7 | 368 | 371 | 1,148 |
PO File | 4 | 216 | 219 | 562 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 133.00 |
▷ Minimum class complexity | 133.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
assets/js/select2/3/select2.png | 0.51KB | 0.99KB | 0.00% |