Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼1.33ms] Passed 4 tests
Server-side resources used by CC-Sentry
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 45.46 ▲2.04 |
Dashboard /wp-admin | 3.56 ▲0.26 | 50.07 ▼5.75 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 52.15 ▲1.54 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 99.58 ▼2.32 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 40.25 ▲1.20 |
Sentry /wp-admin/options-general.php?page=cc-sentry | 3.42 | 36.37 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 67 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
Clearcode\Sentry |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CC-Sentry
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▲0.00 | 1.81 ▲0.05 | 41.46 ▼4.61 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▼0.11 | 82.00 ▼16.22 | 38.50 ▼6.33 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.99 ▼0.04 | 42.83 ▲3.20 | 35.62 ▲2.09 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.03 ▼0.08 | 649.85 ▼29.38 | 53.07 ▼5.50 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.36 ▲0.13 | 97.71 ▼5.75 | 44.79 ▼1.79 |
Sentry /wp-admin/options-general.php?page=cc-sentry | 927 | 2.03 | 30.25 | 26.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/resources/a.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/SanitizeDataProcessorTest.php:12
- > PHP Warning
include_once(): Failed opening '/tmp/a.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/resources/b.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Raven_Processor' not found in wp-content/plugins/cc-sentry/vendor/raven/raven/lib/Raven/SanitizeDataProcessor.php:8
- > PHP Warning
include_once(/tmp/a.php): failed to open stream: No such file or directory in wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/resources/b.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/CompatTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/UtilTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Raven_Client' not found in wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/ClientTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/ErrorHandlerTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/StacktraceTest.php:27
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cc-sentry/vendor/raven/raven/test/Raven/Tests/SerializerTest.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (**CC-Sentry Settings** - Visit the 'Settings > Sentry' page, select your preferred options and save them.) image required
cc-sentry/plugin.php 92% from 13 tests
This is the main PHP file of "CC-Sentry" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cc-sentry.php" instead of "plugin.php")
Code Analysis 5% 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
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/cc-sentry/vendor/bin/raven.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 596 | 766 | 2,979 |
reStructuredText | 1 | 104 | 64 | 105 |
JSON | 3 | 0 | 0 | 98 |
PO File | 1 | 7 | 7 | 32 |
XML | 1 | 2 | 0 | 23 |
YAML | 1 | 7 | 0 | 23 |
make | 1 | 5 | 0 | 12 |
Bourne Shell | 1 | 0 | 0 | 7 |
CSS | 1 | 0 | 0 | 3 |
DOS Batch | 1 | 0 | 0 | 3 |
HTML | 2 | 0 | 2 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 2 | 7.41% |
▷ Concrete classes | 25 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 208 | |
▷ Static methods | 26 | 12.50% |
▷ Public methods | 178 | 85.58% |
▷ Protected methods | 14 | 6.73% |
▷ Private methods | 16 | 7.69% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 14 | |
▷ Global constants | 2 | 14.29% |
▷ Class constants | 12 | 85.71% |
▷ Public constants | 12 | 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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 58.07KB | 21.30KB | ▼ 63.32% |