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.25MB] [CPU: ▼0.24ms] Passed 4 tests
Server-side resources used by Network Posts Extended
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 37.41 ▼2.01 |
Dashboard /wp-admin | 3.59 ▲0.28 | 46.10 ▼3.38 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 52.18 ▲3.65 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 95.14 ▲0.77 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.16 ▲3.65 |
Network Posts Ext /wp-admin/options-general.php?page=netsposts_page | 3.39 | 36.28 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Network Posts Extended
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲38 | 14.63 ▼0.08 | 1.49 ▼0.38 | 38.64 ▼4.94 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.09 | 99.03 ▲5.32 | 42.44 ▼1.15 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▼0.01 | 39.21 ▲6.17 | 35.05 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,529 ▲165 | 23.30 ▲6.36 | 637.55 ▼42.01 | 54.47 ▲5.83 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.00 | 101.56 ▲1.77 | 41.06 ▼3.77 |
Network Posts Ext /wp-admin/options-general.php?page=netsposts_page | 687 | 1.51 | 6.58 | 16.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=netsposts_page
- > Error in wp-content/plugins/network-posts-extended/components/settings/NetsPostsNetworkSettings.php+19
Uncaught Error: Call to undefined function NetworkPosts\Components\Settings\get_sites() in wp-content/plugins/network-posts-extended/components/settings/NetsPostsNetworkSettings.php:19
Stack trace:
#0 wp-content/plugins/network-posts-extended/components/settings/NetsPostsNetworkSettings.php(12): NetworkPosts\Components\Settings\NetsPostsNetworkSettings::get_restricted_excerpt_tag_blogs()
#1 wp-content/plugins/network-posts-extended/components/settings/NetsPostsBlogSettingsPage.php(25): NetworkPosts\Components\Settings\NetsPostsNetworkSettings::is_excerpt_tags_denied()
#2 wp-includes/class-wp-hook.php(310): NetworkPosts\Components\Settings\NetsPostsBlogSettingsPage::print_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/network-posts-extended/network-posts-extended.php
- > /wp-content/plugins/network-posts-extended/views/network_settings.php
- > /wp-content/plugins/network-posts-extended/views/resizer/network_settings.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/network-posts-extended/views/network_settings.php on line 4
- > PHP Notice
Undefined variable: data in wp-content/plugins/network-posts-extended/views/resizer/network_settings.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function netsposts_path() in wp-content/plugins/network-posts-extended/autoload.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function netsposts_path() in wp-content/plugins/network-posts-extended/autoload.php:3
- > PHP Notice
Undefined variable: data in wp-content/plugins/network-posts-extended/views/network_settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function NetworkPosts\\Components\\Resizer\\plugin_dir_path() in wp-content/plugins/network-posts-extended/components/resizer/NetsPostsThumbnailResizerClient.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function NetworkPosts\\Components\\resizer\\plugin_dir_path() in wp-content/plugins/network-posts-extended/components/resizer/NetsPostsImageResizerFacade.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/network-posts-extended/views/resizer/network_settings.php on line 4
- > PHP Notice
Undefined variable: data in wp-content/plugins/network-posts-extended/views/resizer/network_settings.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/network-posts-extended/views/resizer/network_settings.php on line 14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
6 plugin tags: network global posts, global posts, multisite posts, shared posts, display multisite posts...
network-posts-extended/network-posts-extended.php 92% from 13 tests
The principal PHP file in "Network Posts Extended" v. 7.7.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 191 characters long)
Code Analysis 5% from 3 tests
File types 0% from 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
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .lnk - File Shortcut in Windows
- ☣ wp-content/plugins/network-posts-extended/language/11-07-2017 - Shortcut.lnk
- .lnk - File Shortcut in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 751 | 306 | 3,001 |
HTML | 6 | 134 | 0 | 488 |
CSS | 4 | 9 | 0 | 238 |
JavaScript | 2 | 37 | 74 | 171 |
PO File | 6 | 28 | 32 | 153 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 3 | 9.68% |
▷ Concrete classes | 28 | 90.32% |
▷ Final classes | 1 | 3.57% |
Methods | 291 | |
▷ Static methods | 69 | 23.71% |
▷ Public methods | 213 | 73.20% |
▷ Protected methods | 60 | 20.62% |
▷ Private methods | 18 | 6.19% |
Functions | 64 | |
▷ Named functions | 43 | 67.19% |
▷ Anonymous functions | 21 | 32.81% |
Constants | 20 | |
▷ Global constants | 7 | 35.00% |
▷ Class constants | 13 | 65.00% |
▷ Public constants | 12 | 92.31% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin