84% reactivate-theme

Code Review | Reactivate Theme

WordPress plugin Reactivate Theme scored84%from 54 tests.

About plugin

  • Plugin page: reactivate-theme
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2013
  • Latest release: Feb 17, 2016
  • Number of updates: 10
  • Update frequency: every 109.0 days
  • Top authors: Josh Davenport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,824 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Reactivate Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.70 ▼2.52
Dashboard /wp-admin3.31 ▲0.0145.55 ▼4.74
Posts /wp-admin/edit.php3.36 ▲0.0046.89 ▲1.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.45 ▲3.83
Media Library /wp-admin/upload.php3.23 ▲0.0032.40 ▲0.48
Reactivate Theme /wp-admin/tools.php?page=reactivate-theme3.2342.18

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
theme_switched
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
current_theme
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Reactivate Theme
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.20 ▼1.071.75 ▼0.0639.44 ▼6.88
Dashboard /wp-admin2,215 ▲245.90 ▼0.00103.94 ▲0.8640.92 ▼0.12
Posts /wp-admin/edit.php2,095 ▲62.00 ▲0.0139.84 ▲1.1536.37 ▲1.48
Add New Post /wp-admin/post-new.php1,542 ▲918.39 ▼4.42605.72 ▼54.1058.23 ▼6.46
Media Library /wp-admin/upload.php1,394 ▲94.24 ▲0.0396.29 ▲0.6043.63 ▼1.64
Reactivate Theme /wp-admin/tools.php?page=reactivate-theme7982.0328.6733.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • current_theme
    • widget_recent-comments
    • widget_recent-posts
    • theme_switched
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reactivate-theme/wp-reactivate-theme.php:150

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === reactivate-theme === )
You can take inspiration from this readme.txt

reactivate-theme/wp-reactivate-theme.php 92% from 13 tests

The primary PHP file in "Reactivate Theme" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("reactivate-theme.php" instead of "wp-reactivate-theme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected141 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1252897
CSS110044

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected