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.43MB] [CPU: ▼3.56ms] Passed 4 tests
An overview of server-side resources used by WP INCI
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 40.92 ▲0.80 |
Dashboard /wp-admin | 3.81 ▲0.46 | 48.90 ▼14.75 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 48.48 ▲0.93 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 90.39 ▼1.20 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 35.28 ▲3.69 |
Add New /wp-admin/post-new.php?post_type=product | 6.74 | 88.21 |
Sources /wp-admin/edit-tags.php?taxonomy=source&post_type=ingredient | 3.71 | 38.60 |
All Products /wp-admin/edit.php?post_type=product | 3.79 | 38.56 |
WP INCI /wp-admin/options-general.php?page=wi_settings | 3.72 | 32.61 |
Add New /wp-admin/post-new.php?post_type=ingredient | 6.69 | 84.78 |
All Ingredients /wp-admin/edit.php?post_type=ingredient | 3.75 | 37.41 |
Brands /wp-admin/edit-tags.php?taxonomy=brand&post_type=product | 3.69 | 34.72 |
Functions /wp-admin/edit-tags.php?taxonomy=functions&post_type=ingredient | 3.69 | 32.76 |
Server storage [IO: ▲3.95MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 595 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP INCI
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲137 | 14.35 ▲0.00 | 1.74 ▼0.24 | 43.94 ▼0.13 |
Dashboard /wp-admin | 2,300 ▲123 | 5.80 ▲0.14 | 94.70 ▼11.31 | 38.95 ▼3.53 |
Posts /wp-admin/edit.php | 2,206 ▲109 | 2.30 ▲0.33 | 38.60 ▲3.53 | 33.91 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,604 ▲75 | 23.53 ▲0.43 | 616.67 ▼50.15 | 55.65 ▲7.04 |
Media Library /wp-admin/upload.php | 1,493 ▲90 | 4.29 ▲0.08 | 103.39 ▲6.53 | 42.24 ▲0.77 |
Add New /wp-admin/post-new.php?post_type=product | 1,760 | 16.94 | 939.24 | 42.42 |
Sources /wp-admin/edit-tags.php?taxonomy=source&post_type=ingredient | 1,414 | 2.08 | 32.93 | 28.27 |
All Products /wp-admin/edit.php?post_type=product | 1,271 | 2.27 | 35.48 | 28.32 |
WP INCI /wp-admin/options-general.php?page=wi_settings | 1,439 | 5.52 | 91.34 | 42.29 |
Add New /wp-admin/post-new.php?post_type=ingredient | 1,692 | 16.83 | 738.18 | 34.88 |
All Ingredients /wp-admin/edit.php?post_type=ingredient | 1,289 | 2.28 | 34.92 | 30.16 |
Brands /wp-admin/edit-tags.php?taxonomy=brand&post_type=product | 1,351 | 2.00 | 31.40 | 30.34 |
Functions /wp-admin/edit-tags.php?taxonomy=functions&post_type=ingredient | 1,357 | 2.05 | 31.06 | 29.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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)
Good news, no errors were detected
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
The following issues need your attention
- 203× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-inci/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-inci/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-inci/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-inci/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:14
- > PHP Fatal error
Uncaught Error: Class 'Args\\Shared\\Base' not found in wp-content/plugins/wp-inci/vendor/johnbillion/args/src/register_rest_field.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Args\\Arrayable\\Arrayable' not found in wp-content/plugins/wp-inci/vendor/johnbillion/args/src/Shared/Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-inci/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Args\\WP_Http' not found in wp-content/plugins/wp-inci/vendor/johnbillion/args/src/wp_remote_request.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-inci/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wp-inci/vendor/cmb2/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: makeup, cosmetics, inci, ingredients
wp-inci/wp-inci.php Passed 13 tests
The main file in "WP INCI" v. 1.6.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
A WordPress plugin to manage INCI (International Nomenclature of Cosmetic Ingredients).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin67,362 lines of code in 440 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,716 | 19,259 | 32,846 |
PHP | 251 | 4,394 | 12,830 | 14,806 |
JSON | 10 | 0 | 0 | 7,774 |
CSS | 16 | 345 | 1,201 | 4,999 |
JavaScript | 15 | 557 | 639 | 2,408 |
XML | 2 | 39 | 73 | 1,928 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 5 | 375 | 0 | 1,079 |
YAML | 3 | 30 | 0 | 111 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 7 | |
Traits | 5 | |
Classes | 240 | |
▷ Abstract classes | 12 | 5.00% |
▷ Concrete classes | 228 | 95.00% |
▷ Final classes | 6 | 2.63% |
Methods | 858 | |
▷ Static methods | 125 | 14.57% |
▷ Public methods | 713 | 83.10% |
▷ Protected methods | 133 | 15.50% |
▷ Private methods | 12 | 1.40% |
Functions | 44 | |
▷ Named functions | 37 | 84.09% |
▷ Anonymous functions | 7 | 15.91% |
Constants | 139 | |
▷ Global constants | 5 | 3.60% |
▷ Class constants | 134 | 96.40% |
▷ Public constants | 134 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |