Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.17ms] Passed 4 tests
A check of server-side resources used by ShopSite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.09 | 51.45 ▲0.19 |
Dashboard /wp-admin | 3.72 ▲0.09 | 51.35 ▼17.93 |
Posts /wp-admin/edit.php | 3.77 ▲0.09 | 49.00 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.09 | 88.17 ▼11.42 |
Media Library /wp-admin/upload.php | 3.58 ▲0.09 | 37.78 ▲0.49 |
ShopSite /wp-admin/options-general.php?page=shopsite_menu | 3.59 | 36.52 |
Server storage [IO: ▲0.06MB] [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: 11 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_recent-posts |
ss_config_type |
ss_config_dump |
ss_clientid |
ss_shopsite_url |
ss_identifier |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
ss_media_url |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for ShopSite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲147 | 13.89 ▼0.54 | 11.51 ▲9.69 | 38.66 ▼4.67 |
Dashboard /wp-admin | 2,203 ▲23 | 5.60 ▼0.02 | 88.35 ▲1.79 | 38.79 ▼0.32 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.01 ▼0.00 | 36.07 ▼1.40 | 35.58 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,536 ▲5 | 23.55 ▲0.53 | 593.12 ▼107.89 | 53.53 ▲1.70 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.20 ▲0.07 | 101.42 ▼6.44 | 46.15 ▼0.20 |
ShopSite /wp-admin/options-general.php?page=shopsite_menu | 890 | 2.07 | 23.23 | 29.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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)
Good news, no errors were detected
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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/shopsite-plugin/shopsite.php:39
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=shopsite_menu
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=shopsite_menu 141:16 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== shopsite-plugin ===
)
shopsite-plugin/shopsite.php 92% from 13 tests
The principal PHP file in "ShopSite" v. 1.5.7 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shopsite-plugin.php" instead of "shopsite.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
There were no executable files found in this plugin1,272 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 148 | 65 | 584 |
JavaScript | 5 | 117 | 40 | 440 |
CSS | 1 | 52 | 3 | 248 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ss-20.png | 0.92KB | 1.01KB | 0.00% |
ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |