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: ▼6.75ms] Passed 4 tests
Analyzing server-side resources used by Loops 'n Slides
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.85 ▼1.92 |
Dashboard /wp-admin | 3.38 ▲0.07 | 49.45 ▼8.42 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.57 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.98 ▼16.17 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.62 ▲7.75 |
All Loops /wp-admin/edit.php?post_type=loopsns-loop | 3.34 | 54.71 |
All Slides /wp-admin/edit.php?post_type=loopsns-slide | 3.35 | 40.30 |
Settings /wp-admin/admin.php?page=loops-n-slides | 3.27 | 32.95 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
_loopsns-db_version |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Loops 'n Slides
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲163 | 13.42 ▼0.94 | 9.91 ▲7.99 | 43.62 ▼9.27 |
Dashboard /wp-admin | 2,226 ▲49 | 5.50 ▼0.11 | 82.82 ▼17.09 | 39.69 ▼4.19 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.04 ▲0.02 | 39.44 ▲2.12 | 36.50 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,562 ▲25 | 23.14 ▲4.97 | 680.55 ▲18.33 | 53.20 ▼15.93 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.07 ▼0.12 | 125.44 ▲19.00 | 51.77 ▲5.07 |
All Loops /wp-admin/edit.php?post_type=loopsns-loop | 1,097 | 2.02 | 46.29 | 30.79 |
All Slides /wp-admin/edit.php?post_type=loopsns-slide | 1,171 | 2.05 | 42.48 | 36.85 |
Settings /wp-admin/admin.php?page=loops-n-slides | 1,035 | 2.19 | 34.74 | 41.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- _loopsns-db_version
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/loops-n-slides/templates/loop-carousel.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/loops-n-slides/templates/loop-list.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/loops-n-slides/loops-n-slides.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/loops-n-slides/templates/loop-gallery.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/loops-n-slides/templates/loop-excerpts.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: loop, shortcode, slides, carousel, custom query...
loops-n-slides/loops-n-slides.php Passed 13 tests
The main PHP file in "Loops 'n Slides" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
139 characters long description:
A simple yet powerful plugin that allows you to display posts loops based on any query, as a carousel of slides or using a custom template.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin8,165 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 0 | 0 | 4,714 |
JavaScript | 8 | 63 | 70 | 1,211 |
PHP | 11 | 290 | 194 | 1,207 |
TypeScript | 6 | 111 | 220 | 503 |
CSS | 3 | 4 | 24 | 132 |
LESS | 1 | 12 | 4 | 111 |
Sass | 2 | 6 | 0 | 110 |
HTML | 1 | 3 | 0 | 88 |
Markdown | 1 | 27 | 0 | 71 |
YAML | 1 | 0 | 0 | 12 |
Ruby | 1 | 8 | 13 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 14.71 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 69 | |
▷ Static methods | 9 | 13.04% |
▷ Public methods | 69 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin