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.03MB] [CPU: ▼4.95ms] Passed 4 tests
Server-side resources used by Access Watch: Security and Traffic Insights
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.51 ▲5.03 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.01 ▼6.03 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.48 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.89 ▼16.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.22 ▲2.95 |
About /wp-admin/admin.php?page=access-watch-about | 3.22 | 31.87 |
Access Watch /wp-admin/admin.php?page=access-watch-dashboard | 3.22 | 32.03 |
Server storage [IO: ▲3.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 400 new files
Database: no new tables, 7 new options
New WordPress options |
---|
access_watch_api_key_registered |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Access Watch: Security and Traffic Insights
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲95 | 13.13 ▼1.25 | 1.99 ▲0.10 | 45.14 ▲2.17 |
Dashboard /wp-admin | 2,230 ▲42 | 4.84 ▼1.04 | 113.01 ▲5.96 | 42.35 ▲0.33 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.02 ▲0.00 | 35.21 ▼6.53 | 32.98 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 17.41 ▼5.74 | 655.83 ▼38.59 | 53.99 ▼6.04 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 4.24 ▲0.02 | 96.30 ▼11.24 | 43.81 ▼5.99 |
About /wp-admin/admin.php?page=access-watch-about | 786 | 2.18 | 22.94 | 24.37 |
Access Watch /wp-admin/admin.php?page=access-watch-dashboard | 798 | 2.06 | 23.10 | 27.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/access-watch/feedback.php
- > /wp-content/plugins/access-watch/index.php
- 262× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\HeaderBag' not found in wp-content/plugins/access-watch/vendor/symfony/http-foundation/ResponseHeaderBag.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/access-watch/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php:26
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/access-watch/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php:25
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/access-watch/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/access-watch/vendor/bouncer/bouncer/tests/IdentityTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/access-watch/vendor/symfony/http-foundation/Tests/Session/Storage/Proxy/NativeProxyTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Bouncer\\Logger\\BaseLogger' not found in wp-content/plugins/access-watch/vendor/access-watch/access-watch/src/Logger/HttpLogger.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface' not found in wp-content/plugins/access-watch/vendor/symfony/http-foundation/Session/Flash/FlashBagInterface.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/access-watch/vendor/symfony/http-foundation/Tests/ResponseTestCase.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/access-watch/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please a description for screenshot #5 in access-watch/assets to your readme.txt
access-watch/index.php 85% from 13 tests
The main PHP file in "Access Watch: Security and Traffic Insights" ver. 2.0.0-end-of-life... adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("access-watch.php" instead of "index.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "2.0.0-end-of-life...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected29,510 lines of code in 365 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 334 | 6,814 | 13,353 | 27,186 |
Markdown | 12 | 297 | 0 | 951 |
SVG | 3 | 0 | 0 | 551 |
JSON | 7 | 0 | 0 | 470 |
CSS | 1 | 37 | 5 | 230 |
XML | 4 | 8 | 0 | 64 |
JavaScript | 1 | 0 | 1 | 33 |
YAML | 3 | 0 | 0 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 328 | |
▷ Abstract classes | 11 | 3.35% |
▷ Concrete classes | 317 | 96.65% |
▷ Final classes | 0 | 0.00% |
Methods | 2,479 | |
▷ Static methods | 73 | 2.94% |
▷ Public methods | 2,153 | 86.85% |
▷ Protected methods | 233 | 9.40% |
▷ Private methods | 93 | 3.75% |
Functions | 125 | |
▷ Named functions | 41 | 32.80% |
▷ Anonymous functions | 84 | 67.20% |
Constants | 148 | |
▷ Global constants | 5 | 3.38% |
▷ Class constants | 143 | 96.62% |
▷ Public constants | 143 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.12MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/flags2x-1defcd.png | 31.95KB | 32.11KB | 0.00% |
assets/flags1x-0c1db6.png | 14.47KB | 14.65KB | 0.00% |
assets/flags3x-5b66f2.png | 78.85KB | 78.96KB | 0.00% |