89% back-to-the-theme

Code Review | Back To The Theme

WordPress plugin Back To The Theme scored89%from 54 tests.

About plugin

  • Plugin page: back-to-the-theme
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2019
  • Latest release: Mar 2, 2019
  • Number of updates: 7
  • Update frequency: every 2.3 days
  • Top authors: simison (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,012 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.14ms] Passed 4 tests

Analyzing server-side resources used by Back To The Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.11 ▼3.41
Dashboard /wp-admin3.35 ▲0.0044.31 ▼14.70
Posts /wp-admin/edit.php3.40 ▲0.0447.49 ▼1.69
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.69 ▼19.17
Media Library /wp-admin/upload.php3.27 ▲0.0435.04 ▼3.28
Back To The Theme /wp-admin/tools.php?page=back-to-the-theme3.2733.55

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Back To The Theme: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.16 ▼1.241.92 ▲0.2143.35 ▲2.38
Dashboard /wp-admin2,210 ▲194.84 ▼0.23105.15 ▲3.2037.87 ▼5.06
Posts /wp-admin/edit.php2,093 ▲72.00 ▲0.0140.07 ▲4.3435.45 ▲3.14
Add New Post /wp-admin/post-new.php1,520 ▼1317.84 ▼5.33596.03 ▼92.7263.51 ▼5.23
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0794.02 ▼7.0539.11 ▼7.59
Back To The Theme /wp-admin/tools.php?page=back-to-the-theme9182.0624.4130.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
The SRP test was a success

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt might help

back-to-the-theme/index.php 92% from 13 tests

The main PHP file in "Back To The Theme" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("back-to-the-theme.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin301 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods13100.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin