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.17MB] [CPU: ▼4.47ms] Passed 4 tests
Analyzing server-side resources used by Tolstoy Comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.66 ▼2.26 |
Dashboard /wp-admin | 3.47 ▲0.17 | 48.65 ▼0.93 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 48.65 ▼3.21 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 91.61 ▼11.49 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.78 ▲0.03 |
Settings /wp-admin/admin.php?page=tolstoycomments_settings | 3.36 | 35.61 |
Tolstoy 0 /wp-admin/admin.php?page=tolstoycomments | 3.17 | 25.17 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tolstoy Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲123 | 13.24 ▼1.12 | 1.96 ▲0.36 | 42.65 ▲0.41 |
Dashboard /wp-admin | 2,238 ▲52 | 4.90 ▼0.00 | 116.48 ▲2.08 | 38.79 ▲1.13 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.08 ▲0.07 | 42.71 ▲5.15 | 31.12 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,550 ▲30 | 18.21 ▼4.82 | 635.87 ▲12.12 | 68.01 ▲14.12 |
Media Library /wp-admin/upload.php | 1,424 ▲39 | 4.30 ▲0.07 | 117.32 ▼12.36 | 48.83 ▼1.19 |
Settings /wp-admin/admin.php?page=tolstoycomments_settings | 972 | 1.79 | 34.53 | 33.09 |
Tolstoy 0 /wp-admin/admin.php?page=tolstoycomments | 516 | 7.97 | 297.18 | 31.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Основной раздел чатов), #2 (Рейтинги пользователей), #3 (Награды за разные виды достижений), #4 (E-mail и Push-уведомления), #5 (В виджете есть возможность рекламной монетизации)
tolstoy-comments/tolstoycomments.php 85% from 13 tests
The entry point to "Tolstoy Comments" version 2.3.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tolstoy-comments.php" instead of "tolstoycomments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected815 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 147 | 131 | 608 |
PO File | 2 | 56 | 64 | 184 |
JavaScript | 1 | 6 | 0 | 23 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 20 | 60.61% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.12% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin