Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.93ms] Passed 4 tests
Server-side resources used by Session Rewind
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.67 ▼8.36 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.13 ▼4.19 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.58 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.92 ▼16.10 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.73 ▲2.93 |
Session Rewind /wp-admin/options-general.php?page=session-rewind-options | 3.26 | 38.68 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
session_rewind_start_recording |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Session Rewind: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲142 | 13.64 ▼0.58 | 4.71 ▲2.88 | 38.02 ▼4.09 |
Dashboard /wp-admin | 2,213 ▲25 | 5.79 ▼0.06 | 95.52 ▼2.01 | 39.15 ▼6.81 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 33.83 ▼2.29 | 33.06 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 18.48 ▼4.78 | 655.69 ▼26.70 | 64.41 ▲2.22 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▲0.01 | 95.83 ▼0.99 | 42.78 ▼3.81 |
Session Rewind /wp-admin/options-general.php?page=session-rewind-options | 781 | 2.03 | 23.74 | 28.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- session_rewind_start_recording
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/session-rewind/public/partials/session-rewind-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/session-rewind/admin/partials/session-rewind-admin-settings-display.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== session-rewind ===
) - Screenshots: Screenshot #1 (Plugin Configuration) image required
session-rewind/session-rewind.php Passed 13 tests
The main file in "Session Rewind" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
Accurately record every session and issue.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected365 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 109 | 462 | 330 |
SVG | 1 | 0 | 0 | 22 |
JavaScript | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 57.09KB | 15.56KB | ▼ 72.75% |
assets/icon-256x256.png | 29.02KB | 8.96KB | ▼ 69.10% |
assets/icon-128x128.png | 11.38KB | 4.25KB | ▼ 62.68% |