Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.80ms] Passed 4 tests
A check of server-side resources used by The Loops
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 43.84 ▼1.00 |
Dashboard /wp-admin | 3.48 ▲0.13 | 49.28 ▼15.55 |
Posts /wp-admin/edit.php | 3.60 ▲0.23 | 54.37 ▲2.36 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 99.69 ▼1.00 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 40.57 ▲4.31 |
Loops /wp-admin/edit.php?post_type=tl_loop | 3.45 | 38.61 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_tl_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
The Loops: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.42 ▲0.13 | 1.71 ▲0.25 | 43.13 ▲2.55 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.03 | 95.93 ▼0.37 | 39.75 ▼3.07 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.04 | 40.06 ▼4.04 | 37.08 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.17 ▼0.56 | 701.35 ▲23.03 | 54.63 ▼8.32 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▲0.09 | 109.55 ▼1.77 | 46.98 ▼0.61 |
Loops /wp-admin/edit.php?post_type=tl_loop | 1,068 | 1.97 | 33.31 | 30.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_tl_widget
- widget_recent-posts
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/the-loops/tl-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function tl_have_users() in wp-content/plugins/the-loops/tl-templates/the-loops-users-bio.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/the-loops/tl-templates/the-loops-posts-full.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/the-loops/tl-templates/the-loops-posts-excerpt.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/the-loops/tl-templates/the-loops-posts-title.php:17
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: posts, custom post types, pages, tloops, users...
the-loops/the-loops.php Passed 13 tests
Analyzing the main PHP file in "The Loops" version 1.0.2
123 characters long description:
The Loops allows you to query the WordPress database for content and display it in a page without having to write php code.
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
Everything looks great! No dangerous files found in this plugin2,534 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 343 | 514 | 1,596 |
CSS | 6 | 57 | 131 | 550 |
JavaScript | 6 | 85 | 27 | 388 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 26 | 74.29% |
▷ Public methods | 32 | 91.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.57% |
Functions | 24 | |
▷ Named functions | 24 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_21759b_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
css/images/ui-icons_333333_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_cc0000_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_999999_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |