Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.10MB] [CPU: ▼3.94ms] Passed 4 tests
Analyzing server-side resources used by WP Smart Preloader
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▼0.57 | 22.45 ▼18.80 |
Dashboard /wp-admin | 3.36 ▲0.05 | 49.48 ▼1.44 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.33 ▲4.93 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.89 ▲0.26 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.82 ▲4.22 |
WP Smart Preloader /wp-admin/options-general.php?page=wsp-loader | 3.25 | 32.58 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Smart Preloader
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲221 | 13.64 ▼0.94 | 8.02 ▲6.15 | 42.51 ▲1.08 |
Dashboard /wp-admin | 2,217 ▲26 | 4.88 ▼1.00 | 106.58 ▼1.30 | 41.37 ▼4.32 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.99 ▼0.03 | 34.19 ▼1.52 | 35.57 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.08 ▲0.06 | 638.55 ▼13.56 | 54.04 ▲1.57 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.22 ▲0.01 | 96.16 ▼3.53 | 40.69 ▼2.89 |
WP Smart Preloader /wp-admin/options-general.php?page=wsp-loader | 1,016 | 3.54 | 72.11 | 59.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-smart-preloader/wp-preloader.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/wp-smart-preloader/inc/wsp_uninstall.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-preloader/inc/wsp-option_page.php:16
- > 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 96% from 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
8 plugin tags: preload, posts, plugin, preloader, wp smart preloader...
wp-smart-preloader/wp-preloader.php 92% from 13 tests
The main file in "WP Smart Preloader" v. 1.15.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-smart-preloader.php" instead of "wp-preloader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected803 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 67 | 40 | 484 |
PHP | 3 | 56 | 76 | 196 |
JavaScript | 3 | 31 | 1 | 123 |
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.25 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin