100% simple-frontend-template-display

Code Review | Simple Frontend Template Display

WordPress plugin Simple Frontend Template Display scored 100% from 54 tests.

About plugin

  • Plugin page: simple-frontend-t...
  • Plugin version: 0.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.4
  • WordPress version: 5.8.1
  • First release: Dec 2, 2013
  • Latest release: Nov 27, 2015
  • Number of updates: 25
  • Update frequency: every 29.0 days
  • Top authors: mikeselander (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,657 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Simple Frontend Template Display
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0237.50 ▼1.20
Dashboard /wp-admin3.07 ▲0.0251.10 ▼6.69
Posts /wp-admin/edit.php3.16 ▲0.0556.42 ▲9.03
Add New Post /wp-admin/post-new.php5.43 ▼0.0093.61 ▼573.15
Media Library /wp-admin/upload.php3.02 ▲0.0230.47 ▼7.14

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Frontend Template Display
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10716.28 ▲0.788.62 ▼2.5352.21 ▲2.66
Dashboard /wp-admin2,967 ▲415.89 ▼0.08144.36 ▼10.02110.72 ▼23.65
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0169.21 ▼8.5099.97 ▲2.29
Add New Post /wp-admin/post-new.php1,591 ▲1018.79 ▲1.13412.98 ▼1.54112.14 ▼11.48
Media Library /wp-admin/upload.php1,822 ▲745.03 ▲0.03151.52 ▼18.09128.87 ▲6.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: development, front end display, admin bar, page, view...

simple-frontend-template-display/simple-frontend-template-display.php 92% from 13 tests

The main PHP file in "Simple Frontend Template Display" ver. 0.4.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: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin95 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1518195

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin