Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.41MB] [CPU: ▲5.35ms] Passed 4 tests
This is a short check of server-side resources used by Equibles Stocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.88 ▲1.41 | 48.15 ▲9.23 |
Dashboard /wp-admin | 4.72 ▲1.42 | 57.37 ▲6.87 |
Posts /wp-admin/edit.php | 4.77 ▲1.42 | 58.82 ▲14.92 |
Add New Post /wp-admin/post-new.php | 7.32 ▲1.43 | 99.55 ▲0.05 |
Media Library /wp-admin/upload.php | 4.62 ▲1.39 | 43.36 ▲5.23 |
Server storage [IO: ▲11.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 891 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Equibles Stocks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,078 ▲332 | 18.58 ▲3.92 | 1.76 ▼0.04 | 39.71 ▼7.50 |
Dashboard /wp-admin | 2,481 ▲290 | 9.15 ▲3.25 | 196.14 ▲89.38 | 43.14 ▲1.37 |
Posts /wp-admin/edit.php | 2,393 ▲304 | 6.12 ▲4.09 | 76.48 ▲34.95 | 32.72 ▼5.49 |
Add New Post /wp-admin/post-new.php | 1,598 ▲65 | 19.89 ▼3.36 | 699.03 ▲25.68 | 44.88 ▼21.55 |
Media Library /wp-admin/upload.php | 1,529 ▲144 | 6.59 ▲2.44 | 108.48 ▲2.14 | 41.43 ▼2.22 |
Equibles Stocks /wp-admin/crb_carbon_fields_container_equibles_stocks.php | 26 | 0.44 | 0.10 | 13.73 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/equibles-stocks/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 306× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'League\\MimeTypeDetection\\MimeTypeDetector' not found in wp-content/plugins/equibles-stocks/vendor/league/mime-type-detection/src/ExtensionMimeTypeDetector.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/equibles-stocks/vendor/htmlburger/carbon-fields/core/Datastore/Empty_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Class 'League\\Flysystem\\Plugin\\AbstractPlugin' not found in wp-content/plugins/equibles-stocks/vendor/league/flysystem/src/Plugin/ForcedRename.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/equibles-stocks/vendor/htmlburger/carbon-fields/core/Field/Sidebar_Field.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Event\\PersistentListener' not found in wp-content/plugins/equibles-stocks/vendor/htmlburger/carbon-fields/core/Event/SingleEventListener.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/equibles-stocks/vendor/guzzlehttp/psr7/src/UploadedFile.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/equibles-stocks/vendor/htmlburger/carbon-fields/core/Service/Revisions_Service.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Array_Translator' not found in wp-content/plugins/equibles-stocks/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Json_Translator.php:7
- > PHP Fatal error
Uncaught Error: Interface 'EquiblesStocks\\Models\\ModelInterface' not found in wp-content/plugins/equibles-stocks/vendor/equibles/stocks-php/lib/Models/StockProfile.php:42
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Cache\\CacheItemInterface' not found in wp-content/plugins/equibles-stocks/vendor/doctrine/cache/lib/Doctrine/Common/Cache/Psr6/CacheItem.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/crb_carbon_fields_container_equibles_stocks.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_equibles_stocks.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 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
5 plugin tags: stocks api, equibles, stocks, stock quotes, stock prices
equibles-stocks/hello.php 77% from 13 tests
The main PHP script in "Equibles Stocks" version 1.7.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Git Repository: Please remove the Git repository from this plugin
- Description: Keep the plugin description shorter than 140 characters (currently 295 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("equibles-stocks.php" instead of "hello.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin84,160 lines of code in 827 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 470 | 9,812 | 32,268 | 57,618 |
JavaScript | 171 | 5,188 | 8,459 | 12,933 |
Markdown | 78 | 1,826 | 0 | 5,703 |
PO File | 26 | 819 | 1,020 | 2,202 |
JSON | 17 | 0 | 0 | 2,095 |
Sass | 48 | 339 | 0 | 1,769 |
CSS | 7 | 325 | 1,139 | 1,662 |
YAML | 6 | 22 | 3 | 101 |
Bourne Shell | 1 | 14 | 8 | 38 |
XML | 1 | 1 | 0 | 20 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 39 | |
Traits | 9 | |
Classes | 374 | |
▷ Abstract classes | 16 | 4.28% |
▷ Concrete classes | 358 | 95.72% |
▷ Final classes | 30 | 8.38% |
Methods | 4,208 | |
▷ Static methods | 589 | 14.00% |
▷ Public methods | 3,782 | 89.88% |
▷ Protected methods | 265 | 6.30% |
▷ Private methods | 161 | 3.83% |
Functions | 349 | |
▷ Named functions | 101 | 28.94% |
▷ Anonymous functions | 248 | 71.06% |
Constants | 304 | |
▷ Global constants | 81 | 26.64% |
▷ Class constants | 223 | 73.36% |
▷ Public constants | 221 | 99.10% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin