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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼11.58ms] Passed 4 tests
A check of server-side resources used by Post Connector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 48.74 ▼19.27 |
Dashboard /wp-admin | 3.47 ▲0.17 | 44.37 ▼23.22 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.94 ▼1.11 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 89.84 ▼2.70 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.06 ▲2.98 |
Post Connector /wp-admin/admin.php?page=post_connector | 3.36 | 42.00 |
LinkPostScreen /wp-admin/admin.php?page=link_post_screen | 3.28 | 32.54 |
Add New /wp-admin/admin.php?page=post_connector_edit | 3.34 | 30.10 |
Upgrade to Pro /wp-admin/admin.php?page=post_connector_go_pro | 2.15 | 8.86 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_sp_widget_showchilds |
recovery_mode_email_last_sent |
can_compress_scripts |
widget_recent-posts |
pc_version |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Post Connector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 14.78 ▲0.76 | 2.02 ▼0.01 | 47.86 ▲5.14 |
Dashboard /wp-admin | 2,238 ▲53 | 5.87 ▼0.03 | 115.77 ▼2.84 | 42.99 ▼4.40 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.01 ▲0.01 | 44.79 ▼0.13 | 39.17 ▲7.65 |
Add New Post /wp-admin/post-new.php | 1,644 ▲111 | 23.42 ▲0.24 | 715.52 ▲25.80 | 39.81 ▼23.90 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.17 ▼0.04 | 139.36 ▼24.87 | 61.93 ▼8.55 |
Post Connector /wp-admin/admin.php?page=post_connector | 1,078 | 2.20 | 33.03 | 46.99 |
LinkPostScreen /wp-admin/admin.php?page=link_post_screen | 747 | 1.53 | 8.30 | 21.54 |
Add New /wp-admin/admin.php?page=post_connector_edit | 1,139 | 1.69 | 33.42 | 41.12 |
Upgrade to Pro /wp-admin/admin.php?page=post_connector_go_pro | 908 | 4.10 | 112.82 | 115.80 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- widget_sp_widget_showchilds
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-posts
- pc_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=link_post_screen
- > Notice in wp-content/plugins/post-connector/core/classes/hooks/class-hook-link-post-screen.php+167
Undefined index: sp_pt_link
- > GET request to /wp-admin/admin.php?page=link_post_screen
- > Notice in wp-content/plugins/post-connector/core/classes/hooks/class-hook-link-post-screen.php+170
Undefined index: sp_parent
- > GET request to /wp-admin/admin.php?page=link_post_screen
- > Notice in wp-content/plugins/post-connector/core/classes/hooks/class-hook-link-post-screen.php+173
Undefined offset: 2
- > GET request to /wp-admin/admin.php?page=link_post_screen
- > Error in wp-content/plugins/post-connector/core/classes/hooks/class-hook-link-post-screen.php+176
Uncaught Error: Call to a member function get_child() on null in wp-content/plugins/post-connector/core/classes/hooks/class-hook-link-post-screen.php:176
Stack trace:
#0 wp-includes/class-wp-hook.php(310): SP_Hook_Link_Post_Screen->link_post_screen_content()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
SRP 50% from 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 following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SP_Constants_Core' not found in wp-content/plugins/post-connector/core/classes/class-constants.php:3
- > PHP Fatal error
Uncaught Error: Class '_WP_Editors' not found in wp-content/plugins/post-connector/core/assets/js/tinymce/editor_plugin_lang.php:3
- > PHP Fatal error
Uncaught Error: Class 'SP_Hook' not found in wp-content/plugins/post-connector/core/classes/hooks/class-hook-post-type.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-connector/post-connector.php:49
- > PHP Fatal error
Uncaught Error: Class 'SP_Hook' not found in wp-content/plugins/post-connector/core/classes/co-hooks/class-co-hook-sidebar.php:3
- > PHP Fatal error
Uncaught Error: Class 'SP_Hook' not found in wp-content/plugins/post-connector/core/classes/co-hooks/class-co-hook-menu.php:3
- > PHP Fatal error
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
8 plugin tags: post connector, post connection, connection, widget, related...
post-connector/post-connector.php Passed 13 tests
The main file in "Post Connector" v. 1.0.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
With Post Connector you can easily link posts to each other.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected6,193 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 10 | 1,420 | 1,811 | 3,490 |
PHP | 51 | 829 | 1,094 | 2,281 |
JavaScript | 9 | 60 | 37 | 300 |
CSS | 2 | 31 | 6 | 122 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 7 | 14.29% |
▷ Concrete classes | 42 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 14 | 9.52% |
▷ Public methods | 131 | 89.12% |
▷ Protected methods | 1 | 0.68% |
▷ Private methods | 15 | 10.20% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 1 | 5.56% |
▷ Class constants | 17 | 94.44% |
▷ Public constants | 17 | 100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/js/tinymce/icon_shortcode_pc.png | 0.24KB | 0.29KB | 0.00% |
core/assets/images/icon-pc.png | 1.50KB | 0.63KB | ▼ 57.74% |
core/assets/images/grabber.png | 0.95KB | 0.13KB | ▼ 86.45% |