79% reveal-template

Code Review | Reveal Template

WordPress plugin Reveal Template scored79%from 54 tests.

About plugin

  • Plugin page: reveal-template
  • Plugin version: 3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Jun 12, 2009
  • Latest release: Nov 15, 2021
  • Number of updates: 26
  • Update frequency: every 175.2 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /72,851 total downloads

Benchmarks

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼3.65ms] Passed 4 tests

An overview of server-side resources used by Reveal Template
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2843.38 ▲6.62
Dashboard /wp-admin3.65 ▲0.3554.00 ▼0.63
Posts /wp-admin/edit.php3.70 ▲0.3453.76 ▲3.36
Add New Post /wp-admin/post-new.php6.17 ▲0.2896.49 ▼8.19
Media Library /wp-admin/upload.php3.51 ▲0.2839.77 ▼9.12
Reveal Template /wp-admin/themes.php?page=reveal-template/reveal-template.php3.4836.57

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_reveal-template
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Reveal Template
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7713.13 ▼1.151.61 ▼0.2938.35 ▼0.75
Dashboard /wp-admin2,225 ▲225.90 ▲1.03107.59 ▼1.0041.41 ▼6.78
Posts /wp-admin/edit.php2,115 ▲122.03 ▲0.0242.76 ▼1.9636.58 ▼0.21
Add New Post /wp-admin/post-new.php1,545 ▲523.18 ▲0.11653.25 ▼24.0457.09 ▲0.10
Media Library /wp-admin/upload.php1,409 ▲94.26 ▲0.0399.84 ▼23.4447.18 ▼1.51
Reveal Template /wp-admin/themes.php?page=reveal-template/reveal-template.php9612.0525.4636.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_reveal-template
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/reveal-template/tests/phpunit/bootstrap.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/reveal-template/tests/phpunit/bootstrap.php on line 29
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/reveal-template/tests/phpunit/bootstrap.php on line 29

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 important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: design, template, theme, presentation, coffee2code...

reveal-template/reveal-template.php Passed 13 tests

The main PHP script in "Reveal Template" version 3.7 is automatically included on every request by WordPress
121 characters long description:
Reveal the theme template file used to render the displayed page, via the footer, widget, shortcode, and/or template tag.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,129 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP84378881,704
Markdown3640390
Bourne Shell16221
XML10014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity37.67
▷ Minimum class complexity3.00
▷ Maximum class complexity140.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes125.00%
Methods148
▷ Static methods106.76%
▷ Public methods13188.51%
▷ Protected methods128.11%
▷ Private methods53.38%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
c2c_minilogo.png3.49KB1.91KB▼ 45.43%