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.24MB] [CPU: ▼3.69ms] Passed 4 tests
Analyzing server-side resources used by Database Snapshots - WPvivid
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 35.84 ▼3.79 |
Dashboard /wp-admin | 3.57 ▲0.26 | 47.04 ▼2.52 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 49.51 ▲0.61 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 82.75 ▼9.06 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 40.29 ▲8.09 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wpvivid_options |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Database Snapshots - WPvivid
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.41 ▼1.01 | 1.80 ▼0.02 | 41.65 ▼6.45 |
Dashboard /wp-admin | 2,225 ▲34 | 5.19 ▲0.30 | 100.34 ▼16.26 | 41.80 ▼2.88 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.62 ▲0.58 | 38.15 ▲2.10 | 33.12 ▼5.52 |
Add New Post /wp-admin/post-new.php | 6,278 ▲4,750 | 24.25 ▲6.23 | 893.30 ▲238.59 | 49.12 ▼16.10 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.45 ▲0.13 | 100.95 ▲0.22 | 41.31 ▼3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_wpvivid_options
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_dir_path() in wp-content/plugins/wpvivid-snapshot-database/wpvivid-snapshot-database.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #2 (Restore the site from a snapshot), #3 (WPvivid Database Snapshots settings)
wpvivid-snapshot-database/wpvivid-snapshot-database.php 85% from 13 tests
"Database Snapshots - WPvivid" version 0.9.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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 detected3,794 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 372 | 40 | 2,629 |
CSS | 2 | 102 | 37 | 945 |
JavaScript | 2 | 14 | 29 | 220 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 76 | 95.00% |
▷ Protected methods | 3 | 3.75% |
▷ Private methods | 1 | 1.25% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected