84% site-renamer

Code Review | Site Renamer

WordPress plugin Site Renamer scored84%from 54 tests.

About plugin

  • Plugin page: site-renamer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.8
  • WordPress version: 6.3.1
  • First release: May 5, 2013
  • Latest release: Jul 12, 2021
  • Number of updates: 4
  • Update frequency: every 747.5 days
  • Top authors: seufelipe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,096 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.12ms] Passed 4 tests

Server-side resources used by Site Renamer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.32 ▲0.76
Dashboard /wp-admin3.31 ▲0.0049.55 ▼4.44
Posts /wp-admin/edit.php3.36 ▲0.0057.01 ▲6.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.52 ▼1.81
Media Library /wp-admin/upload.php3.23 ▲0.0041.36 ▲1.03

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Site Renamer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.45 ▲0.101.59 ▼0.6741.12 ▼7.04
Dashboard /wp-admin2,192 ▲155.61 ▼0.0698.89 ▼7.0848.32 ▲2.26
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0540.72 ▲3.6836.20 ▼2.09
Add New Post /wp-admin/post-new.php1,526 ▼023.67 ▲0.55675.71 ▼36.5850.28 ▼8.28
Media Library /wp-admin/upload.php1,400 ▲34.11 ▼0.04108.78 ▲10.1646.66 ▲2.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-renamer/site-renamer.php:19

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: develop, development, local, testing

site-renamer/site-renamer.php Passed 13 tests

The main PHP file in "Site Renamer" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Match the blogname option with the current theme name.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1397

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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