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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 43.38 ▲6.62 |
Dashboard /wp-admin | 3.65 ▲0.35 | 54.00 ▼0.63 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 53.76 ▲3.36 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 96.49 ▼8.19 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.77 ▼9.12 |
Reveal Template /wp-admin/themes.php?page=reveal-template/reveal-template.php | 3.48 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 13.13 ▼1.15 | 1.61 ▼0.29 | 38.35 ▼0.75 |
Dashboard /wp-admin | 2,225 ▲22 | 5.90 ▲1.03 | 107.59 ▼1.00 | 41.41 ▼6.78 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.03 ▲0.02 | 42.76 ▼1.96 | 36.58 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.18 ▲0.11 | 653.25 ▼24.04 | 57.09 ▲0.10 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.26 ▲0.03 | 99.84 ▼23.44 | 47.18 ▼1.51 |
Reveal Template /wp-admin/themes.php?page=reveal-template/reveal-template.php | 961 | 2.05 | 25.46 | 36.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 437 | 888 | 1,704 |
Markdown | 3 | 64 | 0 | 390 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
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 code | 0.32 |
Average class complexity | 37.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 1 | 25.00% |
Methods | 148 | |
▷ Static methods | 10 | 6.76% |
▷ Public methods | 131 | 88.51% |
▷ Protected methods | 12 | 8.11% |
▷ Private methods | 5 | 3.38% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |