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.08MB] [CPU: ▼7.49ms] Passed 4 tests
This is a short check of server-side resources used by Rename DB Table Prefix
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.13 ▲1.54 |
Dashboard /wp-admin | 3.39 ▲0.04 | 49.13 ▼11.38 |
Posts /wp-admin/edit.php | 3.51 ▲0.14 | 45.14 ▼3.33 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 82.92 ▼16.78 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 36.05 ▲2.07 |
Rename DB Table Prefix /wp-admin/tools.php?page=rdtp | 3.28 | 28.19 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Rename DB Table Prefix
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲51 | 14.62 ▲0.06 | 2.01 ▲0.23 | 45.26 ▲4.62 |
Dashboard /wp-admin | 2,206 ▲29 | 5.67 ▲0.12 | 93.91 ▲4.61 | 42.06 ▲2.80 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.07 ▲0.10 | 37.05 ▼2.26 | 32.94 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,547 ▲12 | 22.96 ▲4.65 | 669.75 ▲59.28 | 66.04 ▲3.30 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.22 ▲0.10 | 95.84 ▼5.32 | 40.63 ▼2.79 |
Rename DB Table Prefix /wp-admin/tools.php?page=rdtp | 881 | 1.68 | 24.44 | 31.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/rename-db-table-prefix/public/partials/rdtp-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > Array( [0] => test)
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rename-db-table-prefix/admin/partials/rdtp-admin-display.php:22
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 93% 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
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== rename-db-table-prefix ===
)
rename-db-table-prefix/rename-db-table-prefix.php 92% from 13 tests
The main PHP file in "Rename DB Table Prefix" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin405 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 162 | 618 | 400 |
JavaScript | 2 | 2 | 27 | 4 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 3 | 8.33% |
▷ Public methods | 25 | 69.44% |
▷ Protected methods | 5 | 13.89% |
▷ Private methods | 6 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin