Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.71ms] Passed 4 tests
This is a short check of server-side resources used by Storefront - Lines and Circles Animation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.34 ▲0.61 |
Dashboard /wp-admin | 3.39 ▲0.04 | 53.92 ▼9.05 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.32 ▲4.63 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.21 ▼8.87 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.06 ▼1.54 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
activation_notice |
widget_recent-posts |
widget_recent-comments |
storefront-lines-and-circles-version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Storefront - Lines and Circles Animation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.74 ▲0.37 | 2.08 ▲0.19 | 44.14 ▼0.25 |
Dashboard /wp-admin | 2,222 ▲31 | 4.85 ▼1.05 | 114.85 ▲0.50 | 43.34 ▼1.22 |
Posts /wp-admin/edit.php | 2,104 ▲33 | 2.05 ▲0.01 | 34.46 ▼0.32 | 32.81 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.24 ▼0.21 | 635.71 ▼31.08 | 52.44 ▲1.25 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.31 ▲0.18 | 96.58 ▼16.38 | 40.98 ▼6.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- activation_notice
- storefront-lines-and-circles-version
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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)
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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Storefront_Lines_And_Circles_Abstract' not found in wp-content/plugins/storefront-lines-and-circles/includes/class-public.php:18
- > PHP Fatal error
Uncaught Error: Class 'Storefront_Lines_And_Circles_Abstract' not found in wp-content/plugins/storefront-lines-and-circles/includes/class-customizer-fields.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/storefront-lines-and-circles/includes/class-images-control.php:5
- > PHP Fatal error
Uncaught Error: Class 'Storefront_Lines_And_Circles_Abstract' not found in wp-content/plugins/storefront-lines-and-circles/includes/class-admin.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: storefront animation, shop animation, wpdevelopmentme, shramee, lines...
storefront-lines-and-circles/storefront-lines-and-circles.php Passed 13 tests
The principal PHP file in "Storefront - Lines and Circles Animation" v. 1.0.0 is loaded by WordPress automatically on each request
75 characters long description:
Adds awesome lines and circles animation on the front page of your website!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected487 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 139 | 386 | 438 |
CSS | 1 | 8 | 0 | 40 |
JavaScript | 3 | 1 | 6 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 4 | 80.00% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 31 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.12% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/admin/option-1.png | 0.49KB | 0.18KB | ▼ 62.20% |
assets/img/admin/option-3.png | 0.64KB | 0.25KB | ▼ 61.35% |
assets/img/admin/option-2.png | 0.63KB | 0.24KB | ▼ 61.41% |
assets/img/admin/option-4.png | 0.54KB | 0.22KB | ▼ 59.31% |