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.04MB] [CPU: ▲0.35ms] Passed 4 tests
This is a short check of server-side resources used by Good-Loop ad widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 44.59 ▲1.20 |
Dashboard /wp-admin | 3.34 ▲0.04 | 55.04 ▲1.19 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.42 ▲0.14 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 102.04 ▲3.40 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.18 ▼1.13 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_goodloop_adwidget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Good-Loop ad widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.07 | 2.08 ▲0.29 | 44.02 ▼3.91 |
Dashboard /wp-admin | 2,199 ▲22 | 5.56 ▼0.04 | 83.88 ▼18.83 | 39.90 ▼8.98 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.04 ▼0.12 | 39.96 ▲0.65 | 34.91 ▼4.85 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.41 ▲5.11 | 650.09 ▲9.25 | 52.88 ▼6.39 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.16 ▼0.03 | 99.32 ▼9.24 | 45.35 ▼1.46 |
Good-loop /wp-admin/good-loop-adwidget.php | 26 | 0.42 | 0.14 | 13.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_goodloop_adwidget
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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 50% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/good-loop-ad-widget/views/admin.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/good-loop-adwidget.php
- > Network (severe)
wp-admin/good-loop-adwidget.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: widget, good-loop, ads, adverts, charity...
good-loop-ad-widget/good-loop-adwidget.php 92% from 13 tests
Analyzing the main PHP file in "Good-Loop ad widget" version 0.1
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("good-loop-ad-widget.php" instead of "good-loop-adwidget.php")
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
Everything looks great! No dangerous files found in this plugin166 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 13 | 166 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 images were found in this plugin