Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.85ms] Passed 4 tests
An overview of server-side resources used by Multisite Directory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.47 ▲2.74 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.18 ▼2.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.04 ▼0.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.28 ▼29.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.55 ▲1.35 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Multisite Directory
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.02 | 1.76 ▲0.04 | 45.42 ▲5.32 |
Dashboard /wp-admin | 2,192 ▲15 | 5.53 ▼0.18 | 92.42 ▼2.53 | 39.71 ▼5.72 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.10 ▲0.08 | 42.04 ▼1.30 | 36.40 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.03 ▲0.13 | 632.82 ▼43.13 | 50.25 ▼5.06 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.21 ▼0.02 | 108.01 ▲2.57 | 44.28 ▼5.75 |
Uninstaller [IO: ▲0.58MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the followingThe uninstall procedure has failed, leaving 7 options in the database
- This plugin cannot be uninstalled
- > Error in wp-content/plugins/multisite-directory/multisite-directory.php+73
Uncaught Error: Class 'Multisite_Directory_Taxonomy' not found in wp-content/plugins/multisite-directory/multisite-directory.php:73
Stack trace:
#0 wp-content/plugins/multisite-directory/uninstall.php(14): WP_Multisite_Directory::initialize()
#1 wp-admin/includes/plugin.php(1245): include_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(960): uninstall_plugin() - Incomplete uninstall procedure, leaving 54 files (0.58MB) in the plugin directory
- (new file) .bowerrc
- (new file) admin/class-multisite-directory-admin.php
- (new file) admin/partials/.empty
- (new file) admin/index.php
- (new file) .travis.yml
- (new file) README.md
- (new file) admin/js/multisite-directory-admin.js
- (new file) LICENSE.txt
- (new file) bin/install-wp-tests.sh
- (new file) admin/css/.empty
- ...
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/multisite-directory/tests/bootstrap.php on line 8
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/multisite-directory/tests/bootstrap.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/multisite-directory/tests/test-shortcode.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/multisite-directory/tests/test-directory.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multisite-directory/includes/class-multisite-directory-widget.php:17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: posts, taxonomy, network, multisite
multisite-directory/multisite-directory.php Passed 13 tests
The main PHP file in "Multisite Directory" ver. 0.2.3 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
Adds a Network-wide site directory to your WP Multisite network.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected9,523 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 2,189 | 537 | 6,586 |
PHP | 12 | 173 | 698 | 1,032 |
Markdown | 5 | 291 | 0 | 997 |
CSS | 2 | 47 | 18 | 420 |
PO File | 3 | 68 | 77 | 209 |
JSON | 6 | 0 | 0 | 147 |
Bourne Shell | 1 | 19 | 6 | 93 |
YAML | 1 | 7 | 0 | 25 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An overview 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.24 |
Average class complexity | 7.45 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 29 | 46.03% |
▷ Public methods | 56 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.11% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/leaflet/dist/images/layers.png | 1.47KB | 1.05KB | ▼ 28.36% |
vendor/leaflet/dist/images/layers-2x.png | 2.83KB | 1.67KB | ▼ 41.10% |
vendor/leaflet/dist/images/marker-icon-2x.png | 3.94KB | 2.53KB | ▼ 35.71% |
vendor/leaflet/dist/images/marker-shadow.png | 0.78KB | 1.16KB | 0.00% |
vendor/leaflet/dist/images/marker-icon.png | 1.71KB | 1.56KB | ▼ 8.59% |