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.09MB] [CPU: ▼6.16ms] Passed 4 tests
Analyzing server-side resources used by Copy or Move Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.47 ▼1.77 |
Dashboard /wp-admin | 3.40 ▲0.09 | 52.64 ▲1.08 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.79 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.41 ▼21.68 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.60 ▲4.81 |
Copy/Move Comments /wp-admin/admin.php?page=copy-move | 3.28 | 30.11 |
Setting /wp-admin/admin.php?page=copy-move-setting | 3.28 | 34.20 |
Server storage [IO: ▲0.34MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Copy or Move Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲68 | 13.19 ▼1.19 | 4.38 ▲2.60 | 39.28 ▼5.79 |
Dashboard /wp-admin | 2,248 ▲57 | 4.91 ▼0.97 | 116.56 ▲14.82 | 40.36 ▼3.72 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.08 ▲0.03 | 40.50 ▼1.09 | 34.32 ▼5.15 |
Add New Post /wp-admin/post-new.php | 1,553 ▲19 | 23.17 ▲0.06 | 662.43 ▼2.58 | 59.18 ▲7.69 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.25 ▼0.06 | 98.46 ▼3.66 | 47.32 ▲0.41 |
Copy/Move Comments /wp-admin/admin.php?page=copy-move | 1,079 | 2.15 | 44.47 | 28.74 |
Setting /wp-admin/admin.php?page=copy-move-setting | 831 | 1.93 | 30.55 | 28.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copy-or-move-comments/copy_move_comments.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
copy-or-move-comments/copy_move_comments.php 92% from 13 tests
The primary PHP file in "Copy or Move Comments" version 5.0.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("copy-or-move-comments.php" instead of "copy_move_comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected713 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 96 | 34 | 710 |
JavaScript | 1 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.22MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 83.21KB | 24.33KB | ▼ 70.77% |
screenshot-1.png | 60.56KB | 16.46KB | ▼ 72.81% |
screenshot-2.png | 83.43KB | 24.27KB | ▼ 70.90% |