Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.62MB] [CPU: ▲3.88ms] Passed 4 tests
A check of server-side resources used by Posts 2 Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 43.31 ▲4.11 |
Dashboard /wp-admin | 4.02 ▲0.72 | 49.98 ▲3.86 |
Posts /wp-admin/edit.php | 4.07 ▲0.72 | 53.86 ▲9.82 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.65 | 91.72 ▲4.40 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 40.13 ▲3.15 |
Connection Types /wp-admin/tools.php?page=connection-types | 4.12 | 39.20 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 163 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_p2pmeta |
wp_p2p |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
p2p_storage |
widget_p2p |
db_upgraded |
Browser metrics Passed 4 tests
Posts 2 Posts: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.65 ▼0.75 | 1.64 ▼0.23 | 38.53 ▼5.12 |
Dashboard /wp-admin | 2,207 ▲22 | 5.85 ▲0.06 | 103.87 ▲3.75 | 39.22 ▼6.65 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.07 ▲0.07 | 39.30 ▲3.70 | 34.14 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.13 ▼0.11 | 649.63 ▲40.30 | 63.18 ▲11.67 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.21 ▼0.00 | 97.18 ▼4.77 | 43.09 ▲0.68 |
Connection Types /wp-admin/tools.php?page=connection-types | 763 | 2.19 | 25.47 | 27.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_p2p
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Everything seems fine, however 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 items
- 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'P2P_Dropdown' not found in wp-content/plugins/posts-to-posts/admin/dropdown-post.php:3
- > PHP Fatal error
Uncaught Error: Class 'P2P_Side_Post' not found in wp-content/plugins/posts-to-posts/vendor/scribu/lib-posts-to-posts/side-attachment.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/posts-to-posts/vendor/mustache/mustache/src/Mustache/Exception/UnknownFilterException.php:15
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/posts-to-posts/vendor/scribu/scb-framework/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/posts-to-posts/vendor/mustache/mustache/src/Mustache/Loader/CascadingLoader.php:16
- > PHP Fatal error
Uncaught Error: Class 'P2P_Field_Title' not found in wp-content/plugins/posts-to-posts/admin/field-title-attachment.php:3
- > PHP Fatal error
Uncaught Error: Interface 'P2P_Field' not found in wp-content/plugins/posts-to-posts/admin/field-title.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/posts-to-posts/vendor/mustache/mustache/src/Mustache/Exception/InvalidArgumentException.php:15
- > PHP Fatal error
Uncaught Error: Class 'P2P_Side' not found in wp-content/plugins/posts-to-posts/vendor/scribu/lib-posts-to-posts/side-post.php:3
- > PHP Fatal error
Uncaught Error: Class 'P2P_Item' not found in wp-content/plugins/posts-to-posts/vendor/scribu/lib-posts-to-posts/item-any.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: users, many-to-many, relationships, custom post types, connections
posts-to-posts/posts-to-posts.php Passed 13 tests
The primary PHP file in "Posts 2 Posts" version 1.7.2 is used by WordPress to initiate all plugin functionality
61 characters long description:
Create many-to-many relationships between all types of posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,017 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 2,086 | 3,844 | 6,404 |
PO File | 18 | 589 | 725 | 1,398 |
JavaScript | 2 | 173 | 89 | 821 |
CSS | 2 | 48 | 4 | 191 |
HTML | 11 | 7 | 0 | 107 |
XML | 5 | 0 | 0 | 71 |
Markdown | 1 | 16 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 96 | |
▷ Abstract classes | 15 | 15.62% |
▷ Concrete classes | 81 | 84.38% |
▷ Final classes | 0 | 0.00% |
Methods | 622 | |
▷ Static methods | 108 | 17.36% |
▷ Public methods | 460 | 73.95% |
▷ Protected methods | 87 | 13.99% |
▷ Private methods | 75 | 12.06% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 68 | |
▷ Global constants | 3 | 4.41% |
▷ Class constants | 65 | 95.59% |
▷ Public constants | 65 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/minus.png | 0.10KB | 0.11KB | 0.00% |
admin/images/sort.png | 0.27KB | 0.16KB | ▼ 39.49% |
admin/images/plus.png | 0.12KB | 0.12KB | ▼ 1.57% |