Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.40ms] Passed 4 tests
Analyzing server-side resources used by LH Backup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.97 ▼5.34 |
Dashboard /wp-admin | 3.44 ▲0.13 | 73.38 ▲23.71 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.99 ▲2.18 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.44 ▼7.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.65 ▼2.85 |
LH Backup /wp-admin/options-general.php?page=lh-backup/lh-backup.php | 3.22 | 29.75 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
LH Backup: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.47 | 4.49 ▲2.50 | 42.01 ▼0.23 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▼0.01 | 106.12 ▼4.35 | 38.36 ▼3.44 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▲0.01 | 39.50 ▼0.22 | 36.06 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,517 ▼25 | 17.67 ▼5.53 | 674.08 ▲4.83 | 60.43 ▲5.61 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.23 ▼0.01 | 95.50 ▼18.98 | 43.89 ▼4.51 |
LH Backup /wp-admin/options-general.php?page=lh-backup/lh-backup.php | 816 | 2.02 | 29.41 | 26.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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)
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-backup/lh-backup.php
- > Notice in wp-content/plugins/lh-backup/lh-backup.php+367
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-backup/lh-backup.php
- > Warning in wp-content/plugins/lh-backup/lh-backup.php+367
implode(): Invalid arguments passed
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-backup/lh-backup.php:401
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Requires at least: Version not formatted correctly
lh-backup/lh-backup.php Passed 13 tests
Analyzing the main PHP file in "LH Backup" version 1.1
49 characters long description:
Creates an email backup of tables in the database
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin202 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 204 | 35 | 202 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 40.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin