10% mk-simple-backups

Code Review | mk Simple Backups

WordPress plugin mk Simple Backups scored10%from 54 tests.

About plugin

  • Plugin page: mk-simple-backups
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.5
  • WordPress version: 6.3.1
  • First release: Apr 11, 2014
  • Latest release: Aug 31, 2020
  • Number of updates: 86
  • Update frequency: every 27.1 days
  • Top authors: michitzky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,986 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.48 ▼2.81
Dashboard /wp-admin3.31 ▼0.0443.51 ▼14.26
Posts /wp-admin/edit.php3.36 ▲0.0043.55 ▼5.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.13 ▼13.17
Media Library /wp-admin/upload.php3.23 ▲0.0037.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼1.001.81 ▲0.2139.78 ▼2.52
Dashboard /wp-admin2,209 ▲184.87 ▼0.0195.67 ▼6.5737.88 ▼5.38
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0034.85 ▲0.7531.20 ▼5.44
Add New Post /wp-admin/post-new.php1,514 ▼1917.78 ▼5.39586.26 ▼39.5952.16 ▼0.00
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0594.36 ▼1.6140.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

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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP3374175865
PO File167102205
CSS114636

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 code0.31
Average class complexity8.46
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods69
▷ Static methods68.70%
▷ Public methods6797.10%
▷ Protected methods22.90%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
assets/images/layout.png0.47KB0.47KB▼ 0.63%
assets/images/page_white.png0.29KB0.34KB0.00%
assets/images/plugin.png0.58KB0.65KB0.00%
assets/images/page_white_zip.png0.38KB0.53KB0.00%
assets/images/pictures.png0.69KB0.80KB0.00%