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
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼3.93ms] Passed 4 tests
This is a short check of server-side resources used by Log-Hero.com Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 40.21 ▼6.62 |
Dashboard /wp-admin | 3.57 ▲0.27 | 48.58 ▼1.67 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 52.05 ▲2.72 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 86.40 ▼10.13 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 46.79 ▲10.70 |
LogHero /wp-admin/options-general.php?page=loghero | 3.40 | 34.71 |
LogHero Developer Settings /wp-admin/admin.php?page=loghero-dev | 3.40 | 32.23 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Log-Hero.com Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 14.74 ▲0.34 | 1.69 ▼0.74 | 40.42 ▼3.47 |
Dashboard /wp-admin | 2,227 ▲39 | 6.00 ▲1.12 | 108.50 ▲0.80 | 39.15 ▼0.52 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.07 ▲0.03 | 41.47 ▲0.32 | 36.42 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,532 ▼15 | 17.67 ▼0.62 | 637.38 ▲28.44 | 71.10 ▼9.22 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.23 ▲0.04 | 94.06 ▼3.62 | 41.20 ▼4.18 |
LogHero /wp-admin/options-general.php?page=loghero | 864 | 2.06 | 23.22 | 30.75 |
LogHero Developer Settings /wp-admin/admin.php?page=loghero-dev | 802 | 2.06 | 24.44 | 24.08 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/loghero/sdk/sample/randomLogs.php
- > /wp-content/plugins/loghero/tests/bootstrap.php
- 294× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\Connection\\FactoryInterface' not found in wp-content/plugins/loghero/sdk/vendor/predis/predis/src/Connection/Factory.php:21
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/loghero/sdk/vendor/predis/predis/src/Command/SetCardinality.php:19
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/loghero/sdk/vendor/predis/predis/src/Command/StringIncrementByFloat.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\ClientInterface' not found in wp-content/plugins/loghero/sdk/vendor/predis/predis/src/Client.php:41
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\Connection\\ConnectionInterface' not found in wp-content/plugins/loghero/sdk/vendor/predis/predis/src/Connection/NodeConnectionInterface.php:21
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/loghero/sdk/vendor/predis/predis/src/Command/StringGetBit.php:19
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\ServerEval' not found in wp-content/plugins/loghero/sdk/vendor/predis/predis/src/Command/ServerEvalSHA.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/loghero/sdk/test/MemLogBufferTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/loghero/sdk/vendor/predis/predis/src/Command/HashDelete.php:19
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/loghero/sdk/vendor/predis/predis/src/Command/ServerCommand.php:19
- > 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
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: seo, logs, log files, search engine bots, crawlers...
loghero/loghero.php Passed 13 tests
This is the main PHP file of "Log-Hero.com Plugin" version 0.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
129 characters long description:
Analyze how search engines and other bots crawl and understand your web page. The official PHP Wordpress plugin for log-hero.com.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin16,097 lines of code in 383 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 367 | 3,749 | 9,344 | 14,539 |
Markdown | 5 | 463 | 0 | 1,256 |
Bourne Shell | 4 | 21 | 11 | 126 |
JSON | 4 | 0 | 0 | 126 |
XML | 2 | 4 | 2 | 26 |
INI | 1 | 6 | 6 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 32 | |
Traits | 0 | |
Classes | 311 | |
▷ Abstract classes | 13 | 4.18% |
▷ Concrete classes | 298 | 95.82% |
▷ Final classes | 1 | 0.34% |
Methods | 1,266 | |
▷ Static methods | 54 | 4.27% |
▷ Public methods | 990 | 78.20% |
▷ Protected methods | 200 | 15.80% |
▷ Private methods | 76 | 6.00% |
Functions | 38 | |
▷ Named functions | 17 | 44.74% |
▷ Anonymous functions | 21 | 55.26% |
Constants | 27 | |
▷ Global constants | 4 | 14.81% |
▷ Class constants | 23 | 85.19% |
▷ Public constants | 23 | 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
There are no PNG files in this plugin