Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.05ms] Passed 4 tests
An overview of server-side resources used by AI Preloader
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.82 ▼2.07 |
Dashboard /wp-admin | 3.48 ▲0.18 | 48.25 ▲0.31 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.79 ▲6.64 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 77.02 ▼7.21 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.87 ▲0.77 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for AI Preloader
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,089 ▲354 | 15.72 ▲1.34 | 4.92 ▲3.03 | 40.65 ▼7.38 |
Dashboard /wp-admin | 2,375 ▲183 | 6.72 ▲1.76 | 134.93 ▲24.42 | 44.27 ▲2.32 |
Posts /wp-admin/edit.php | 2,290 ▲201 | 3.63 ▲1.59 | 56.64 ▲20.92 | 36.39 ▲3.12 |
Add New Post /wp-admin/post-new.php | 1,548 ▲31 | 23.20 ▲5.53 | 629.72 ▼31.76 | 35.25 ▼15.97 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.41 ▲0.15 | 79.78 ▼18.44 | 43.12 ▼2.23 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ai-preloader/templates/style2.php
- > /wp-content/plugins/ai-preloader/templates/style5.php
- > /wp-content/plugins/ai-preloader/templates/style6.php
- > /wp-content/plugins/ai-preloader/templates/style7.php
- > /wp-content/plugins/ai-preloader/admin/partials/ai-preloader-admin-display.php
- > /wp-content/plugins/ai-preloader/templates/style3.php
- > /wp-content/plugins/ai-preloader/public/partials/ai-preloader-public-display.php
- > /wp-content/plugins/ai-preloader/templates/style4.php
- > /wp-content/plugins/ai-preloader/templates/style1.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/ai-preloader/admin/partials/admin-menu-page.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ai-preloader/templates/style0.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
5 plugin tags: gif, preloader, css, loader, loading
ai-preloader/ai-preloader.php Passed 13 tests
This is the main PHP file of "AI Preloader" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
124 characters long description:
AI Preloader is a static picture or animated css loaders displayed on-screen while the website is loading in the background.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected990 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 219 | 626 | 519 |
CSS | 2 | 23 | 32 | 429 |
JavaScript | 4 | 14 | 65 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin