94% remember-my-template

Code Review | Remember My Template

WordPress plugin Remember My Template scored 94% from 54 tests.

About plugin

  • Plugin page: remember-my-template
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.2
  • WordPress version: 5.8.1
  • First release: Jul 4, 2013
  • Latest release: Jul 5, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: stephenharris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 918 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼140.99ms] Passed 4 tests

Server-side resources used by Remember My Template
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1241.97 ▲18.32
Dashboard /wp-admin3.07 ▲0.0141.77 ▼6.68
Posts /wp-admin/edit.php3.16 ▲0.0450.78 ▲5.20
Add New Post /wp-admin/post-new.php5.43 ▼0.0194.21 ▼562.88
Media Library /wp-admin/upload.php3.01 ▲0.0134.03 ▲0.41

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Remember My Template: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.23 ▲0.789.62 ▲2.2451.73 ▼4.61
Dashboard /wp-admin2,970 ▲335.90 ▼0.02172.00 ▲25.02109.44 ▼8.54
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0069.28 ▼0.6692.83 ▼4.44
Add New Post /wp-admin/post-new.php1,670 ▼1319.14 ▲0.99391.61 ▲15.41120.44 ▼2.01
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.03154.56 ▲0.42122.60 ▼1.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 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/remember-my-template/remember-my-template.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
There were not plugin tags detected

remember-my-template/remember-my-template.php Passed 13 tests

The primary PHP file in "Remember My Template" version 0.1 is used by WordPress to initiate all plugin functionality
69 characters long description:
Remembers the template that was selected when the theme was last used

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected41 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1113327
Markdown17014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin