Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▼3.87ms] Passed 4 tests
An overview of server-side resources used by Ferret
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 37.00 ▼2.84 |
Dashboard /wp-admin | 3.76 ▲0.41 | 48.17 ▼11.11 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 49.24 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 94.55 ▼2.05 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 37.77 ▲0.54 |
Ferret Settings /wp-admin/options-general.php?page=ferret | 3.59 | 34.52 |
Server storage [IO: ▲1.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 531 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Ferret
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.23 ▼1.15 | 1.48 ▼0.29 | 42.00 ▲1.25 |
Dashboard /wp-admin | 2,224 ▲33 | 5.85 ▲0.96 | 108.37 ▲3.97 | 42.02 ▼3.38 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.03 ▲0.03 | 40.52 ▲5.25 | 35.60 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.18 ▼0.06 | 661.64 ▼6.04 | 47.86 ▼10.58 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.17 ▼0.06 | 106.92 ▲5.29 | 44.19 ▲1.12 |
Ferret Settings /wp-admin/options-general.php?page=ferret | 865 | 2.15 | 27.73 | 30.40 |
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: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 259× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/ferret/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/ferret/vendor/php-http/client-common/src/Plugin/AuthenticationPlugin.php:17
- > PHP Fatal error
Uncaught Error: Class 'Http\\Message\\Builder\\ResponseBuilder' not found in wp-content/plugins/ferret/vendor/php-http/curl-client/src/ResponseBuilder.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Converter\umberConverterInterface' not found in wp-content/plugins/ferret/vendor/ramsey/uuid/src/Converter/Number/DegradedNumberConverter.php:25
- > PHP Fatal error
Trait 'Http\\Message\\Decorator\\MessageDecorator' not found in wp-content/plugins/ferret/vendor/php-http/message/src/Decorator/RequestDecorator.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Exception' not found in wp-content/plugins/ferret/vendor/php-http/discovery/src/Exception/NoCandidateFoundException.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ferret/admin/admin-view.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientInterface' not found in wp-content/plugins/ferret/vendor/php-http/httplug/src/HttpClient.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Sentry\\FlushableClientInterface' not found in wp-content/plugins/ferret/vendor/sentry/sentry/src/Client.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Sentry\\Transport\\TransportInterface' not found in wp-content/plugins/ferret/vendor/sentry/sentry/src/Transport/SpoolTransport.php:15
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== ferret ===
)
ferret/plugin.php 92% from 13 tests
This is the main PHP file of "Ferret" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ferret.php" instead of "plugin.php")
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
No dangerous file extensions were detected27,900 lines of code in 494 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 415 | 5,481 | 15,036 | 20,156 |
Markdown | 40 | 2,700 | 0 | 4,742 |
JSON | 28 | 0 | 0 | 2,744 |
XML | 5 | 19 | 1 | 130 |
PO File | 1 | 16 | 16 | 87 |
YAML | 3 | 5 | 2 | 29 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 65 | |
Interfaces | 67 | |
Traits | 15 | |
Classes | 294 | |
▷ Abstract classes | 6 | 2.04% |
▷ Concrete classes | 288 | 97.96% |
▷ Final classes | 138 | 47.92% |
Methods | 1,858 | |
▷ Static methods | 208 | 11.19% |
▷ Public methods | 1,596 | 85.90% |
▷ Protected methods | 69 | 3.71% |
▷ Private methods | 193 | 10.39% |
Functions | 208 | |
▷ Named functions | 82 | 39.42% |
▷ Anonymous functions | 126 | 60.58% |
Constants | 102 | |
▷ Global constants | 3 | 2.94% |
▷ Class constants | 99 | 97.06% |
▷ Public constants | 94 | 94.95% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin