Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/comments-mover/move-comments.php+60
Undefined index: target_post_id
Server metrics [RAM: ▼0.91MB] [CPU: ▼32.80ms] Passed 4 tests
An overview of server-side resources used by Comments Mover
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.11 ▼4.94 |
Dashboard /wp-admin | 3.03 ▼0.27 | 24.64 ▼19.97 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 22.79 ▼25.94 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 23.98 ▼72.22 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 22.06 ▼13.05 |
Move Comments /wp-admin/edit-comments.php?page=comments-mover/move-comments.php | 3.09 | 22.98 |
All Comments /wp-admin/edit-comments.php | 3.09 | 22.82 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Comments Mover
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲87 | 13.56 ▼0.72 | 1.94 ▲0.10 | 43.68 ▼0.50 |
Dashboard /wp-admin | 2,222 ▲34 | 5.86 ▼0.05 | 97.19 ▼1.25 | 36.71 ▼7.48 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.02 ▼0.03 | 34.51 ▼1.37 | 31.85 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,545 ▲9 | 23.25 ▼0.12 | 684.94 ▲54.22 | 55.51 ▼0.18 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.26 ▲0.02 | 95.43 ▼5.60 | 43.79 ▼1.56 |
Move Comments /wp-admin/edit-comments.php?page=comments-mover/move-comments.php | 836 | 2.03 | 28.05 | 27.09 |
All Comments /wp-admin/edit-comments.php | 1,814 | 2.30 | 36.05 | 34.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/comments-mover/move-comments.php+60
Undefined index: target_post_id
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=comments-mover/move-comments.php
- > Notice in wp-content/plugins/comments-mover/move-comments.php+129
Undefined index: source_post_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=comments-mover/move-comments.php
- > Notice in wp-content/plugins/comments-mover/update-db.php+48
Undefined variable: postStatus
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=comments-mover/move-comments.php
- > Notice in wp-content/plugins/comments-mover/move-comments.php+281
Undefined index: target_post_id
- > GET request to /wp-admin/edit-comments.php?page=comments-mover/move-comments.php
- > Notice in wp-content/plugins/comments-mover/move-comments.php+297
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/comments-mover/move-comments.php
- > /wp-content/plugins/comments-mover/update-db.php
- > /wp-content/plugins/comments-mover/comments-helper.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-mover/comments_mover_functions.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: migrate wp comments, move all comments, page, comments
comments-mover/move-comments.php 92% from 13 tests
This is the main PHP file of "Comments Mover" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("comments-mover.php" instead of "move-comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin381 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 66 | 48 | 368 |
CSS | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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
PNG images were not found in this plugin