Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼4.84ms] Passed 4 tests
This is a short check of server-side resources used by Culture Object
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 38.71 ▼1.65 |
Dashboard /wp-admin | 3.54 ▲0.23 | 47.72 ▼8.15 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 50.01 ▲1.74 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 85.70 ▼11.30 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 35.52 ▲1.80 |
Provider Settings /wp-admin/admin.php?page=cos_provider_settings | 3.43 | 34.30 |
Objects /wp-admin/edit.php?post_type=object | 3.50 | 40.00 |
Add New /wp-admin/post-new.php?post_type=object | 3.52 | 49.18 |
Main Settings /wp-admin/admin.php?page=cos_settings | 6.54 | 58.81 |
Server storage [IO: ▲4.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 496 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
cos_core_sync_key |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Culture Object
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲122 | 13.60 ▼0.69 | 1.78 ▼0.14 | 38.18 ▼5.11 |
Dashboard /wp-admin | 2,257 ▲66 | 5.82 ▼0.03 | 97.63 ▼14.03 | 35.79 ▼17.21 |
Posts /wp-admin/edit.php | 2,143 ▲51 | 2.00 ▼0.05 | 36.01 ▼1.44 | 30.34 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,587 ▲61 | 23.25 ▲0.16 | 644.31 ▲25.84 | 58.18 ▲2.10 |
Media Library /wp-admin/upload.php | 1,445 ▲60 | 4.23 ▲0.05 | 101.08 ▼6.58 | 47.72 ▲4.11 |
Provider Settings /wp-admin/admin.php?page=cos_provider_settings | 847 | 2.04 | 27.31 | 31.91 |
Objects /wp-admin/edit.php?post_type=object | 1,119 | 2.01 | 37.66 | 31.21 |
Add New /wp-admin/post-new.php?post_type=object | 1,758 | 3.52 | 63.75 | 36.18 |
Main Settings /wp-admin/admin.php?page=cos_settings | 928 | 2.04 | 28.49 | 39.96 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- cos_core_sync_key
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/culture-object/providers/CSV2/vendor/markbaker/complex/examples/complexTest.php
- > /wp-content/plugins/culture-object/providers/CSV2/vendor/markbaker/complex/examples/testFunctions.php
- > /wp-content/plugins/culture-object/providers/CSV2/vendor/markbaker/matrix/examples/test.php
- > /wp-content/plugins/culture-object/providers/CSV2/vendor/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/culture-object/providers/CSV2/vendor/markbaker/complex/examples/testOperations.php
- 138× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Chart\\Properties' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Axis.php:11
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Drawing' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/HeaderFooterDrawing.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls.php:61
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\BaseWriter' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php:31
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/DocProps.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Style.php:16
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\BaseParserClass' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/ColumnAndRowAttributes.php:10
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\BaseWriter' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Csv.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Cell\\DefaultValueBinder' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/AdvancedValueBinder.php:11
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\IComparable' not found in wp-content/plugins/culture-object/providers/CSV2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/BaseDrawing.php:9
- > 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 96% 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
6 plugin tags: object, sync, collections, culture, objects...
culture-object/CultureObject.php 92% from 13 tests
"Culture Object" version 4.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("culture-object.php" instead of "CultureObject.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected73,323 lines of code in 434 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 383 | 14,712 | 33,030 | 69,950 |
JSON | 14 | 0 | 0 | 1,276 |
Markdown | 22 | 422 | 0 | 1,134 |
CSS | 4 | 43 | 152 | 472 |
JavaScript | 5 | 41 | 0 | 394 |
XML | 3 | 14 | 1 | 77 |
YAML | 3 | 0 | 0 | 20 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,022)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 35.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,022.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 27 | |
Traits | 0 | |
Classes | 285 | |
▷ Abstract classes | 20 | 7.02% |
▷ Concrete classes | 265 | 92.98% |
▷ Final classes | 4 | 1.51% |
Methods | 3,632 | |
▷ Static methods | 799 | 22.00% |
▷ Public methods | 2,819 | 77.62% |
▷ Protected methods | 105 | 2.89% |
▷ Private methods | 708 | 19.49% |
Functions | 121 | |
▷ Named functions | 105 | 86.78% |
▷ Anonymous functions | 16 | 13.22% |
Constants | 850 | |
▷ Global constants | 6 | 0.71% |
▷ Class constants | 844 | 99.29% |
▷ Public constants | 843 | 99.88% |
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 were not PNG files found in your plugin