Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/postsaver/postsaver.php+39
Constant POSTSAVER_VERSION_NUM already defined
Server metrics [RAM: ▼1.82MB] [CPU: ▼56.63ms] Passed 4 tests
A check of server-side resources used by PostSaver
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.54 ▼36.89 |
Dashboard /wp-admin | 2.18 ▼1.12 | 7.11 ▼49.62 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 7.48 ▼41.81 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.70 | 6.61 ▼98.18 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 7.51 ▼33.21 |
Settings /wp-admin/admin.php?page=PostSaver-Options-settings | 2.19 | 7.89 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_postsaver_settings |
wp_postsaver_users |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PostSaver
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 13.67 ▼0.73 | 7.80 ▲5.63 | 42.09 ▼4.53 |
Dashboard /wp-admin | 2,207 ▲27 | 5.84 ▲0.17 | 91.49 ▼0.95 | 86.53 ▲44.30 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.28 ▲0.29 | 36.19 ▲0.15 | 33.75 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 18.23 ▼4.78 | 719.73 ▲9.38 | 55.36 ▲1.40 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.36 ▲0.12 | 107.92 ▼10.95 | 79.44 ▲30.39 |
Settings /wp-admin/admin.php?page=PostSaver-Options-settings | 1,126 | 2.13 | 37.74 | 36.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/postsaver/postsaver.php+39
Constant POSTSAVER_VERSION_NUM already defined
- Zombie tables were found after uninstall: 2 tables
- wp_postsaver_settings
- wp_postsaver_users
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=PostSaver-Options-settings
- > Notice in wp-content/plugins/postsaver/postsaver.php+39
Constant POSTSAVER_VERSION_NUM already defined
- > GET request to /wp-admin/admin.php?page=PostSaver-Options-settings
- > Notice in wp-content/plugins/postsaver/includes/ui/class-admin-settings-settings1-tab-ui.php+119
Undefined variable: iconurl
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/postsaver/includes/classes/class-postsaver-dashboard-ui.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were found
postsaver/postsaver.php Passed 13 tests
The main PHP script in "PostSaver" version 1.0.0 is automatically included on every request by WordPress
87 characters long description:
A Plugin allowing visitors to create an account and save blog posts for future viewing!
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
Success! There were no dangerous files found in this plugin1,584 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 372 | 357 | 1,121 |
JavaScript | 2 | 117 | 64 | 291 |
SVG | 5 | 0 | 3 | 170 |
CSS | 2 | 0 | 0 | 2 |
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.27 |
Average class complexity | 12.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 3 | 5.66% |
▷ Public methods | 41 | 77.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 22.64% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 1.67MB with 1.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/img/user-image-placeholder.png | 28.46KB | 0.00KB | ▼ 100.00% |
assets/img/postalreadysaved.png | 20.52KB | 10.13KB | ▼ 50.63% |
assets/img/settings.png | 24.25KB | 10.52KB | ▼ 56.62% |
assets/img/edit-user.png | 38.52KB | 14.04KB | ▼ 63.55% |
assets/img/savethispost.png | 36.32KB | 9.03KB | ▼ 75.13% |