Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/mk-simple-backups/mk-simple-backups.php+358
syntax error, unexpected end of file
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.90ms] Passed 4 tests
An overview of server-side resources used by mk Simple Backups
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.48 ▼2.81 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.51 ▼14.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.55 ▼5.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.13 ▼13.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.94 ▲3.83 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
mk Simple Backups: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.65 ▼1.00 | 1.81 ▲0.21 | 39.78 ▼2.52 |
Dashboard /wp-admin | 2,209 ▲18 | 4.87 ▼0.01 | 95.67 ▼6.57 | 37.88 ▼5.38 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.00 | 34.85 ▲0.75 | 31.20 ▼5.44 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.78 ▼5.39 | 586.26 ▼39.59 | 52.16 ▼0.00 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.05 | 94.36 ▼1.61 | 40.77 ▼5.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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 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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/mk-simple-backups/mk-simple-backups.php on line 358
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mk-simple-backups ===
)
mk-simple-backups/mk-simple-backups.php Passed 13 tests
The main PHP script in "mk Simple Backups" version 1.0.11 is automatically included on every request by WordPress
83 characters long description:
Allows you to create simple backups on a dedicated page nested in the "Tools" Menu.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,106 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 374 | 175 | 865 |
PO File | 1 | 67 | 102 | 205 |
CSS | 1 | 14 | 6 | 36 |
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.31 |
Average class complexity | 8.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 6 | 8.70% |
▷ Public methods | 67 | 97.10% |
▷ Protected methods | 2 | 2.90% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/layout.png | 0.47KB | 0.47KB | ▼ 0.63% |
assets/images/page_white.png | 0.29KB | 0.34KB | 0.00% |
assets/images/plugin.png | 0.58KB | 0.65KB | 0.00% |
assets/images/page_white_zip.png | 0.38KB | 0.53KB | 0.00% |
assets/images/pictures.png | 0.69KB | 0.80KB | 0.00% |