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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.72ms] Passed 4 tests
A check of server-side resources used by Gopherduct
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.94 ▼1.80 |
Dashboard /wp-admin | 3.37 ▲0.07 | 42.77 ▼13.84 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 50.68 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.79 ▼8.53 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 32.59 ▼2.71 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Gopherduct
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▲0.01 | 1.70 ▼2.95 | 42.72 ▼4.35 |
Dashboard /wp-admin | 2,200 ▲12 | 5.81 ▲0.92 | 101.39 ▼14.46 | 41.23 ▼1.19 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.00 | 38.95 ▲3.93 | 39.42 ▲5.25 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.36 ▼0.10 | 656.99 ▼51.21 | 70.99 ▲13.62 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▼0.20 | 96.07 ▼4.78 | 41.97 ▼1.19 |
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 detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/gopherduct/vendor/michelf/php-markdown/Readme.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/gopherduct/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function invisnet\\Gopherduct\\register_activation_hook() in wp-content/plugins/gopherduct/gopherduct.php:57
- > PHP Fatal error
Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/gopherduct/vendor/michelf/php-markdown/Michelf/Markdown.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: gopher
gopherduct/gopherduct.php Passed 13 tests
The main PHP file in "Gopherduct" ver. 0.9.0 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
A WordPress to Gopherspace bridge.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,155 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 544 | 1,611 | 2,657 |
Markdown | 2 | 138 | 0 | 335 |
JSON | 2 | 0 | 0 | 82 |
YAML | 2 | 6 | 2 | 57 |
XML | 1 | 1 | 0 | 23 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 35.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 5 | 3.82% |
▷ Public methods | 33 | 25.19% |
▷ Protected methods | 97 | 74.05% |
▷ Private methods | 1 | 0.76% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin