Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▼0.92ms] Passed 4 tests
This is a short check of server-side resources used by Show Fit File
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.80 | 43.35 ▲3.90 |
Dashboard /wp-admin | 4.09 ▲0.75 | 55.21 ▼6.81 |
Posts /wp-admin/edit.php | 4.20 ▲0.85 | 55.27 ▲2.60 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.80 | 90.12 ▼3.36 |
Media Library /wp-admin/upload.php | 4.01 ▲0.79 | 45.30 ▲8.42 |
Server storage [IO: ▲3.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Show Fit File
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲90 | 19.15 ▲4.85 | 33.32 ▲30.73 | 41.64 ▲0.27 |
Dashboard /wp-admin | 2,218 ▲18 | 4.88 ▼1.00 | 115.23 ▲10.79 | 42.64 ▲1.66 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.01 ▼0.00 | 36.22 ▼4.05 | 34.82 ▼4.07 |
Add New Post /wp-admin/post-new.php | 6,463 ▲4,937 | 31.61 ▲13.81 | 1,063.11 ▲395.96 | 42.08 ▼24.14 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.29 ▲0.10 | 120.51 ▼8.76 | 45.03 ▼13.56 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/show-fit-file/showfitfile.php:34
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
show-fit-file/showfitfile.php 92% from 13 tests
The principal PHP file in "Show Fit File" v. 1.2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("show-fit-file.php" instead of "showfitfile.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin54,823 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 640 | 145 | 50,756 |
PHP | 5 | 410 | 348 | 3,232 |
CSS | 5 | 80 | 32 | 698 |
JSON | 1 | 0 | 0 | 137 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 179.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 358.00 |
Average method complexity | 10.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 25.00% |
Functions | 39 | |
▷ Named functions | 33 | 84.62% |
▷ Anonymous functions | 6 | 15.38% |
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
13 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
build/images/marker-shadow.a0c6cc14.png | 0.60KB | 1.16KB | 0.00% |
styles/images/layers.png | 0.68KB | 1.05KB | 0.00% |
build/images/marker-icon-2x-blue.69c430ad.png | 3.94KB | 2.53KB | ▼ 35.71% |
styles/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |