Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/throwback-posts/includes/class-throwback-posts.php+81
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.53MB] [CPU: ▲0.28ms] Passed 4 tests
Server-side resources used by Throwback Posts - Celebrate your old posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 47.64 ▲2.23 |
Dashboard /wp-admin | 3.87 ▲0.56 | 60.54 ▲8.93 |
Posts /wp-admin/edit.php | 3.91 ▲0.56 | 62.21 ▲6.33 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.50 | 98.35 ▼16.38 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 48.70 ▲14.47 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 3.78 | 46.29 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
throwback-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Throwback Posts - Celebrate your old posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,059 ▲298 | 15.12 ▲0.79 | 1.83 ▲0.19 | 42.34 ▲0.51 |
Dashboard /wp-admin | 2,462 ▲282 | 6.76 ▲1.11 | 118.26 ▲27.83 | 41.32 ▲0.88 |
Posts /wp-admin/edit.php | 2,386 ▲286 | 3.48 ▲1.51 | 57.68 ▲21.66 | 32.08 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,635 ▲109 | 23.63 ▲0.66 | 699.13 ▲8.25 | 40.51 ▼11.37 |
Media Library /wp-admin/upload.php | 1,526 ▲129 | 4.77 ▲0.59 | 84.49 ▼20.00 | 41.57 ▼4.04 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,456 | 3.25 | 47.35 | 53.12 |
Design/Content Options /wp-admin/admin.php?page=throwback-posts#tab=2 | 1,804 | 4.46 | 87.58 | 77.03 |
General /wp-admin/admin.php?page=throwback-posts#tab=1 | 1,611 | 4.12 | 66.48 | 58.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- throwback-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/throwback-posts/admin/partials/throwback-posts-admin-display.php
- > /wp-content/plugins/throwback-posts/public/partials/throwback-posts-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #3 is required in throwback-posts/assets to your readme.txt
throwback-posts/throwback-posts.php Passed 13 tests
The primary PHP file in "Throwback Posts - Celebrate your old posts" version 1.1 is used by WordPress to initiate all plugin functionality
90 characters long description:
This plugin shows automatically your throwback posts - one year ago, two years ago, etc...
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected21,514 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 76 | 2,065 | 1,443 | 8,405 |
JSON | 2 | 0 | 0 | 4,712 |
JavaScript | 6 | 1,202 | 340 | 3,818 |
CSS | 5 | 269 | 434 | 3,783 |
Markdown | 2 | 93 | 0 | 420 |
PO File | 1 | 63 | 71 | 143 |
SVG | 4 | 0 | 2 | 120 |
Sass | 1 | 3 | 1 | 113 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 17.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 5.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 28 | 14.51% |
▷ Public methods | 187 | 96.89% |
▷ Protected methods | 1 | 0.52% |
▷ Private methods | 5 | 2.59% |
Functions | 26 | |
▷ Named functions | 26 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/vendor/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |