78% rename-db-table-prefix

Code Review | Rename DB Table Prefix

WordPress plugin Rename DB Table Prefix scored78%from 54 tests.

About plugin

  • Plugin page: rename-db-table-p...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Sep 29, 2017
  • Latest release: Sep 29, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: JRGould (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /1,925 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.13 ▲1.54
Dashboard /wp-admin3.39 ▲0.0449.13 ▼11.38
Posts /wp-admin/edit.php3.51 ▲0.1445.14 ▼3.33
Add New Post /wp-admin/post-new.php5.99 ▲0.1082.92 ▼16.78
Media Library /wp-admin/upload.php3.32 ▲0.0836.05 ▲2.07
Rename DB Table Prefix /wp-admin/tools.php?page=rdtp3.2828.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲5114.62 ▲0.062.01 ▲0.2345.26 ▲4.62
Dashboard /wp-admin2,206 ▲295.67 ▲0.1293.91 ▲4.6142.06 ▲2.80
Posts /wp-admin/edit.php2,108 ▲112.07 ▲0.1037.05 ▼2.2632.94 ▼3.83
Add New Post /wp-admin/post-new.php1,547 ▲1222.96 ▲4.65669.75 ▲59.2866.04 ▲3.30
Media Library /wp-admin/upload.php1,408 ▲54.22 ▲0.1095.84 ▼5.3240.63 ▼2.79
Rename DB Table Prefix /wp-admin/tools.php?page=rdtp8811.6824.4431.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 === )
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP13162618400
JavaScript22274
CSS2041

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 code0.23
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods36
▷ Static methods38.33%
▷ Public methods2569.44%
▷ Protected methods513.89%
▷ Private methods616.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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