Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼145.99ms] Passed 4 tests
A check of server-side resources used by WP-Tripolis
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.87 ▲12.15 |
Dashboard /wp-admin | 3.10 ▲0.05 | 41.53 ▼3.56 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 46.85 ▲6.59 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 90.17 ▼583.25 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 36.17 ▼3.72 |
WP-Tripolis Generator /wp-admin/tools.php?page=wptripoliswptripolisshortcodegenerator | 3.05 | 31.17 |
WP-Tripolis /wp-admin/options-general.php?page=wptripolis_optionsscreen | 2.99 | 31.47 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP-Tripolis: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,719 ▲123 | 15.95 ▲0.43 | 9.48 ▲2.59 | 46.89 ▼3.00 |
Dashboard /wp-admin | 3,004 ▲70 | 6.06 ▲0.07 | 147.86 ▲4.97 | 113.26 ▼4.14 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.82 ▼0.00 | 65.54 ▼4.61 | 90.31 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,686 ▲105 | 19.18 ▲1.51 | 378.12 ▼69.72 | 112.34 ▼23.04 |
Media Library /wp-admin/upload.php | 1,822 ▲15 | 5.01 ▼0.02 | 154.00 ▼40.10 | 131.50 ▼7.43 |
WP-Tripolis Generator /wp-admin/tools.php?page=wptripoliswptripolisshortcodegenerator | 1,018 | 2.22 | 58.96 | 72.53 |
WP-Tripolis /wp-admin/options-general.php?page=wptripolis_optionsscreen | 1,158 | 2.18 | 62.57 | 93.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wptripolis_optionsscreen
- > Notice in wp-content/plugins/wp-tripolis/lib/src/OptionsScreen.php+122
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-tripolis/plugin.php
- 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPTripolis\\Tripolis\\Service\\AbstractService' not found in wp-content/plugins/wp-tripolis/lib/src/Tripolis/Service/DirectEmailTypeService.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPTripolis\\Tripolis\\Response\\AbstractIteratorResponse' not found in wp-content/plugins/wp-tripolis/lib/src/Tripolis/Response/ContactDatabaseFieldService/GetByContactDatabaseIdResponse.php:14
- > PHP Fatal error
Uncaught Error: Class 'WPTripolis\\Tripolis\\Response\\AbstractIteratorResponse' not found in wp-content/plugins/wp-tripolis/lib/src/Tripolis/Response/UserService/GetUsersInClientDomainByAuthInfoResponse.php:14
- > PHP Fatal error
Uncaught Error: Class 'WPTripolis\\Tripolis\\Service\\AbstractService' not found in wp-content/plugins/wp-tripolis/lib/src/Tripolis/Service/GenericService.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPTripolis\\Tripolis\\Service\\AbstractService' not found in wp-content/plugins/wp-tripolis/lib/src/Tripolis/Service/ContactDatabaseFieldService.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPTripolis\\Tripolis\\Service\\AbstractService' not found in wp-content/plugins/wp-tripolis/lib/src/Tripolis/Service/WorkspaceService.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPTripolis\\Wordpress\\Utility' not found in wp-content/plugins/wp-tripolis/lib/src/WPTripolisShortcodeGenerator.php:14
- > PHP Fatal error
Uncaught Error: Class 'WPTripolis\\Tripolis\\Service\\AbstractService' not found in wp-content/plugins/wp-tripolis/lib/src/Tripolis/Service/ContactService.php:20
- > PHP Fatal error
Uncaught Error: Class 'WPTripolis\\Tripolis\\Response\\AbstractIteratorResponse' not found in wp-content/plugins/wp-tripolis/lib/src/Tripolis/Response/ContactDatabaseFieldService/GetByContactDatabaseFieldGroupIdResponse.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wptripolis_show_form_status() in wp-content/plugins/wp-tripolis/templates/subscribe.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
3 plugin tags: tripolis, forms, shortcode
wp-tripolis/plugin.php 85% from 13 tests
The main file in "WP-Tripolis" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-tripolis.php" instead of "plugin.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 265 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,531 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 630 | 1,276 | 2,348 |
JavaScript | 1 | 26 | 5 | 116 |
CSS | 2 | 10 | 0 | 67 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 47 | |
▷ Abstract classes | 6 | 12.77% |
▷ Concrete classes | 41 | 87.23% |
▷ Final classes | 0 | 0.00% |
Methods | 172 | |
▷ Static methods | 16 | 9.30% |
▷ Public methods | 146 | 84.88% |
▷ Protected methods | 26 | 15.12% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 24 | 88.89% |
▷ Anonymous functions | 3 | 11.11% |
Constants | 17 | |
▷ Global constants | 1 | 5.88% |
▷ Class constants | 16 | 94.12% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin