Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.94MB] [CPU: ▼35.75ms] Passed 4 tests
A check of server-side resources used by Simple Copy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.35 ▼1.48 |
Dashboard /wp-admin | 3.00 ▼0.30 | 26.00 ▼28.10 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 26.00 ▼22.76 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 20.20 ▼77.42 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 25.10 ▼14.72 |
Simple Copy /wp-admin/admin.php?page=simplecopy | 3.01 | 31.09 |
Backup Database /wp-admin/admin.php?page=sc_backup_pagedb | 3.01 | 29.81 |
Backup Themes /wp-admin/admin.php?page=sc_backup_themes_page | 3.01 | 24.16 |
Backup Plugins /wp-admin/admin.php?page=sc_backup_pageplugin | 3.01 | 30.94 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- Illegal file modification found: 3 files (13,205.48KB) outside of "wp-content/plugins/simple-copy/" and "wp-content/uploads/"
- (new file) wp-content/themes_by_simplecopy_13-10-2023-19-50-35.zip
- (new file) wp-content/plugins_by_simplecopy_13-10-2023-19-50-38.zip
- (new file) wp-content/database_by_simplecopy_13-10-2023-19-50-34.sql
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Copy
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲90 | 14.44 ▼0.31 | 1.83 ▼0.04 | 47.68 ▲1.86 |
Dashboard /wp-admin | 2,245 ▲42 | 4.93 ▼0.94 | 104.96 ▼1.58 | 74.89 ▲28.52 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 1.98 ▼0.06 | 36.43 ▼2.86 | 35.80 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,710 ▲165 | 22.63 ▼0.49 | 723.20 ▲35.99 | 58.31 ▼9.58 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.20 ▲0.06 | 108.71 ▼10.04 | 86.99 ▲35.46 |
Simple Copy /wp-admin/admin.php?page=simplecopy | 854 | 2.13 | 31.24 | 34.88 |
Backup Database /wp-admin/admin.php?page=sc_backup_pagedb | 701 | 1.53 | 7.83 | 23.69 |
Backup Themes /wp-admin/admin.php?page=sc_backup_themes_page | 818 | 2.00 | 25.15 | 27.99 |
Backup Plugins /wp-admin/admin.php?page=sc_backup_pageplugin | 814 | 2.00 | 39.80 | 37.56 |
Uninstaller [IO: ▲12.90MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sc_backup_pageplugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-copy/simplecopy.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: backup, archive
simple-copy/simplecopy.php 92% from 13 tests
Analyzing the main PHP file in "Simple Copy" version 1.0
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-copy.php" instead of "simplecopy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected275 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 61 | 48 | 267 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/Wapuu-Vipe-Studio-Ltd.png | 32.87KB | 13.30KB | ▼ 59.54% |
admin/img/icon.png | 0.76KB | 0.96KB | 0.00% |