Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.67ms] Passed 4 tests
This is a short check of server-side resources used by WP Simple and Nice Preloader
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.61 ▼2.08 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.28 ▲0.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.03 ▼2.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.84 ▼19.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.08 ▲7.00 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 186 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
wpsnp_color |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
wpsnp_theme |
theysaidso_admin_options |
db_upgraded |
wpsnp_ietheme |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Simple and Nice Preloader
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲98 | 13.30 ▼1.07 | 7.60 ▲4.89 | 47.41 ▲1.44 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼0.97 | 104.43 ▲2.24 | 81.42 ▲38.15 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 2.01 ▼0.00 | 34.41 ▼2.08 | 34.32 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.16 ▲0.02 | 711.15 ▲45.74 | 58.01 ▲5.20 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.17 ▼0.01 | 99.03 ▼7.35 | 45.73 ▲3.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- wpsnp_theme
- wpsnp_color
- widget_recent-posts
- wpsnp_ietheme
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-simple-and-nice-preloader/wpsnp_preloader.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
wp-simple-and-nice-preloader/wpsnp_preloader.php 85% from 13 tests
The principal PHP file in "WP Simple and Nice Preloader" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-simple-and-nice-preloader.php" instead of "wpsnp_preloader.php")
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
Success! There were no dangerous files found in this plugin11,154 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 141 | 1,092 | 141 | 10,146 |
JavaScript | 1 | 102 | 0 | 819 |
PHP | 2 | 1 | 17 | 189 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 5 | |
▷ Named functions | 5 | 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
No PNG files were detected