Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.24MB] [CPU: ▼15.33ms] Passed 4 tests
An overview of server-side resources used by Web Screenshort
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.95 ▲0.43 |
Dashboard /wp-admin | 3.06 ▼0.24 | 27.65 ▼21.15 |
Posts /wp-admin/edit.php | 3.20 ▼0.16 | 33.07 ▼9.94 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.45 | 68.43 ▼20.18 |
Media Library /wp-admin/upload.php | 3.13 ▼0.10 | 25.38 ▼10.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Web Screenshort
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.47 ▲0.05 | 1.78 ▼0.03 | 43.34 ▼3.42 |
Dashboard /wp-admin | 2,217 ▲26 | 4.86 ▼1.00 | 100.29 ▼2.72 | 37.97 ▼7.41 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.04 ▲0.03 | 42.52 ▲5.82 | 35.95 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,549 ▲13 | 18.44 ▼4.77 | 601.35 ▼62.98 | 53.40 ▼2.29 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.20 ▼0.08 | 98.09 ▼1.01 | 42.31 ▼1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/web-screenshort/wp-screenshort.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/web-screenshort/wp-screen-admin.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Donate link: Please fix this invalid url: ""
web-screenshort/wp-screenshort.php 92% from 13 tests
Analyzing the main PHP file in "Web Screenshort" version 1.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("web-screenshort.php" instead of "wp-screenshort.php")
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 plugin309 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 28 | 26 | 246 |
JavaScript | 1 | 10 | 3 | 41 |
CSS | 2 | 7 | 3 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/web-screenshort.png | 0.76KB | 0.64KB | ▼ 16.62% |
img/logo.png | 5.93KB | 4.69KB | ▼ 20.88% |