Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/decalog/includes/system/class-sharedmemory.php+97
shmop_open(): unable to attach or create shared memory segment 'No such file or directory'
Server metrics [RAM: ▲5.09MB] [CPU: ▲65.02ms] 75% from 4 tests
An overview of server-side resources used by DecaLog
Please fix the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.09MB on /wp-admin/admin.php?page=perfopsone-dashboard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.14 ▲4.68 | 104.35 ▲58.99 |
Dashboard /wp-admin | 8.55 ▲5.24 | 116.94 ▲70.02 |
Posts /wp-admin/edit.php | 8.63 ▲5.26 | 126.37 ▲81.25 |
Add New Post /wp-admin/post-new.php | 11.13 ▲5.24 | 155.48 ▲55.72 |
Media Library /wp-admin/upload.php | 8.44 ▲5.20 | 108.92 ▲75.34 |
Consoles /wp-admin/admin.php?page=perfopsone-consoles | 8.41 | 101.78 |
DecaLog /wp-admin/admin.php?page=decalog-settings | 9.62 | 126.64 |
Live Events /wp-admin/admin.php?page=decalog-console | 8.41 | 99.58 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 8.56 | 95.79 |
Server storage [IO: ▲8.79MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- There were 2 files (8.88KB) illegally modified outside of "wp-content/plugins/decalog/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/_decalog_loader.php
- (new file) wp-content/fatal-error-handler.php
Filesystem: 1,713 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
DecaLog: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 14.43 ▼0.12 | 1.80 ▼0.08 | 39.63 ▼1.45 |
Dashboard /wp-admin | 2,232 ▲52 | 5.48 ▼0.18 | 82.29 ▼2.97 | 35.82 ▼2.31 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.02 ▲0.06 | 37.03 ▼0.65 | 31.29 ▼5.69 |
Add New Post /wp-admin/post-new.php | 1,546 ▲11 | 20.87 ▲2.59 | 647.81 ▲27.02 | 52.50 ▼11.02 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.19 ▼0.12 | 95.62 ▼4.24 | 41.47 ▼1.46 |
Consoles /wp-admin/admin.php?page=perfopsone-consoles | 899 | 2.00 | 26.39 | 27.78 |
DecaLog /wp-admin/admin.php?page=decalog-settings | 2,100 | 1.74 | 24.22 | 54.55 |
Live Events /wp-admin/admin.php?page=decalog-console | 918 | 2.16 | 31.12 | 42.51 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 1,071 | 2.01 | 24.47 | 30.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=decalog-console
- > Warning in wp-content/plugins/decalog/includes/system/class-sharedmemory.php+97
shmop_open(): unable to attach or create shared memory segment 'No such file or directory'
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/decalog/public/partials/decalog-public-display.php
- 940× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'InfluxDB2\\Model\\ModelInterface' not found in wp-content/plugins/decalog/includes/libraries/influxdb/Model/UserLinks.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Prometheus\\Storage\\Adapter' not found in wp-content/plugins/decalog/includes/libraries/prometheus/Storage/APC.php:12
- > PHP Warning
Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/decalog/includes/system/class-cache.php on line 112
- > PHP Fatal error
Uncaught Error: Interface 'InfluxDB2\\Model\\ModelInterface' not found in wp-content/plugins/decalog/includes/libraries/influxdb/Model/Label.php:43
- > PHP Fatal error
Uncaught Error: Interface 'DLGuzzleHttp\\Stream\\StreamInterface' not found in wp-content/plugins/decalog/includes/libraries/guzzlehttp/Stream/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Interface 'InfluxDB2\\Model\\ModelInterface' not found in wp-content/plugins/decalog/includes/libraries/influxdb/Model/HealthCheck.php:43
- > PHP Fatal error
Uncaught Error: Interface 'InfluxDB2\\Model\\ModelInterface' not found in wp-content/plugins/decalog/includes/libraries/influxdb/Model/RenamableField.php:44
- > PHP Fatal error
Uncaught Error: Class 'InfluxDB2\\Model\\Threshold' not found in wp-content/plugins/decalog/includes/libraries/influxdb/Model/RangeThreshold.php:41
- > PHP Fatal error
Uncaught Error: Class 'Thrift\\Type\\TConstant' not found in wp-content/plugins/decalog/includes/libraries/jaeger/Thrift/Agent/Zipkin/Constant.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/decalog/admin/partials/decalog-admin-view-traces-bottom.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
5 plugin tags: error reporting, logs, monitoring, tracing, logging
decalog/decalog.php Passed 13 tests
The main PHP script in "DecaLog" version 3.9.0 is automatically included on every request by WordPress
95 characters long description:
Capture and log events, metrics and traces on your site. Make WordPress observable – finally!
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin168,277 lines of code in 1,668 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,347 | 32,222 | 104,255 | 160,400 |
SVG | 283 | 0 | 0 | 4,167 |
Markdown | 12 | 452 | 0 | 1,343 |
JavaScript | 11 | 226 | 32 | 1,173 |
CSS | 13 | 241 | 30 | 1,141 |
JSON | 2 | 0 | 0 | 53 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,166)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,166.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 124 | |
Interfaces | 84 | |
Traits | 30 | |
Classes | 1,181 | |
▷ Abstract classes | 35 | 2.96% |
▷ Concrete classes | 1,146 | 97.04% |
▷ Final classes | 94 | 8.20% |
Methods | 12,142 | |
▷ Static methods | 1,773 | 14.60% |
▷ Public methods | 10,496 | 86.44% |
▷ Protected methods | 867 | 7.14% |
▷ Private methods | 779 | 6.42% |
Functions | 1,095 | |
▷ Named functions | 96 | 8.77% |
▷ Anonymous functions | 999 | 91.23% |
Constants | 893 | |
▷ Global constants | 78 | 8.73% |
▷ Class constants | 815 | 91.27% |
▷ Public constants | 764 | 93.74% |
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
There are no PNG files in this plugin