Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.59MB] [CPU: ▼6.33ms] Passed 4 tests
Server-side resources used by Climbing Cardboard
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 42.97 ▲2.22 |
Dashboard /wp-admin | 4.01 ▲0.66 | 55.01 ▼12.41 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 52.27 ▼1.77 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.66 | 91.58 ▼13.36 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 46.53 ▲12.01 |
Server storage [IO: ▲10.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,692 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_climbing_cards |
New WordPress options |
---|
climbing_card_db_schema_version |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Climbing Cardboard
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲174 | 14.69 ▲0.26 | 40.94 ▲39.07 | 37.82 ▼2.16 |
Dashboard /wp-admin | 2,280 ▲74 | 5.82 ▼0.07 | 110.74 ▲1.99 | 45.66 ▲4.71 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 2.01 ▼0.01 | 36.36 ▼4.08 | 40.98 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,394 ▼151 | 21.66 ▼1.61 | 553.07 ▼121.60 | 54.95 ▼0.81 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.32 ▲0.08 | 107.21 ▼3.41 | 47.10 ▲1.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_climbing_cards
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- climbing_card_db_schema_version
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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 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
Please fix the following
- 10× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/climbing-cartboard/vendor/illuminate/pagination/resources/views/simple-bootstrap-4.blade.php
- > /wp-content/plugins/climbing-cartboard/vendor/illuminate/pagination/resources/views/semantic-ui.blade.php
- > /wp-content/plugins/climbing-cartboard/vendor/illuminate/pagination/resources/views/simple-tailwind.blade.php
- > /wp-content/plugins/climbing-cartboard/vendor/illuminate/pagination/resources/views/tailwind.blade.php
- > /wp-content/plugins/climbing-cartboard/vendor/league/plates/example/templates/sidebar.php
- > /wp-content/plugins/climbing-cartboard/vendor/illuminate/pagination/resources/views/bootstrap-4.blade.php
- > /wp-content/plugins/climbing-cartboard/resources/views/admin/cards/index.php
- > /wp-content/plugins/climbing-cartboard/resources/views/cards/partials/table.php
- > /wp-content/plugins/climbing-cartboard/vendor/illuminate/pagination/resources/views/simple-default.blade.php
- > /wp-content/plugins/climbing-cartboard/vendor/illuminate/pagination/resources/views/default.blade.php
- 249× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/climbing-cartboard/vendor/symfony/translation/Dumper/PoFileDumper.php:21
- > PHP Warning
include(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/climbing-cartboard/vendor/league/plates/example/example.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Translator' not found in wp-content/plugins/climbing-cartboard/vendor/nesbot/carbon/src/Carbon/AbstractTranslator.php:21
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/climbing-cartboard/vendor/league/plates/example/templates/layout.php:3
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Pagination\\AbstractPaginator' not found in wp-content/plugins/climbing-cartboard/vendor/illuminate/pagination/Paginator.php:14
- > PHP Fatal error
Uncaught Error: Class 'ClimbingCard\\Http\\Api\\ApiController' not found in wp-content/plugins/climbing-cartboard/src/Http/Api/SettingsController.php:7
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Inflector\\GenericLanguageInflectorFactory' not found in wp-content/plugins/climbing-cartboard/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/English/InflectorFactory.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon\\PHPStan\\AbstractMacro' not found in wp-content/plugins/climbing-cartboard/vendor/nesbot/carbon/lazy/Carbon/PHPStan/AbstractMacroStatic.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Extractor\\ExtractorInterface' not found in wp-content/plugins/climbing-cartboard/vendor/symfony/translation/Extractor/ChainExtractor.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/climbing-cartboard/vendor/symfony/translation/Loader/IcuResFileLoader.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: climbing, routes, sport, stats, logbook
climbing-cartboard/activation.php 77% from 13 tests
"Climbing Cardboard" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("climbing-cartboard.php" instead of "activation.php")
- Domain Path: The domain path is invalid: folder "/resources/lang" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/climbing-cartboard/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,358 | 11,389 | 40,308 | 54,739 |
XSD | 3 | 92 | 48 | 2,803 |
Markdown | 44 | 831 | 1 | 2,411 |
JSON | 21 | 0 | 0 | 2,021 |
Blade | 7 | 18 | 26 | 257 |
PO File | 2 | 100 | 194 | 228 |
HTML | 5 | 9 | 2 | 114 |
reStructuredText | 1 | 74 | 78 | 74 |
YAML | 1 | 3 | 0 | 35 |
XML | 1 | 3 | 0 | 33 |
CSS | 4 | 5 | 8 | 27 |
JavaScript | 4 | 0 | 14 | 21 |
SVG | 1 | 5 | 0 | 19 |
TOML | 1 | 3 | 0 | 12 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 315.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 92 | |
Interfaces | 150 | |
Traits | 36 | |
Classes | 312 | |
▷ Abstract classes | 21 | 6.73% |
▷ Concrete classes | 291 | 93.27% |
▷ Final classes | 38 | 13.06% |
Methods | 3,685 | |
▷ Static methods | 769 | 20.87% |
▷ Public methods | 3,264 | 88.58% |
▷ Protected methods | 294 | 7.98% |
▷ Private methods | 127 | 3.45% |
Functions | 542 | |
▷ Named functions | 143 | 26.38% |
▷ Anonymous functions | 399 | 73.62% |
Constants | 212 | |
▷ Global constants | 19 | 8.96% |
▷ Class constants | 193 | 91.04% |
▷ Public constants | 188 | 97.41% |
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
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/league/plates/doc/static/images/logo.png | 2.25KB | 1.53KB | ▼ 32.22% |
public/assets/images/logo.png | 32.65KB | 28.94KB | ▼ 11.35% |
vendor/league/plates/doc/static/favicon/apple-touch-icon-precomposed.png | 5.40KB | 2.79KB | ▼ 48.42% |