Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.13ms] Passed 4 tests
Server-side resources used by Wonka Slide
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.57 ▲1.79 |
Dashboard /wp-admin | 3.38 ▲0.07 | 49.95 ▼1.39 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.40 ▼0.76 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.47 ▼14.72 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.24 ▲0.35 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Wonka Slide
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲126 | 13.44 ▼0.91 | 9.33 ▲7.56 | 38.69 ▼6.29 |
Dashboard /wp-admin | 2,235 ▲55 | 5.58 ▼0.05 | 97.04 ▲11.13 | 71.92 ▲28.98 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 1.98 ▼0.00 | 35.48 ▼4.24 | 33.38 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.50 ▲0.37 | 766.85 ▲69.20 | 55.58 ▲3.37 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.11 ▲0.04 | 100.94 ▼10.20 | 61.91 ▲12.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wonka-slide/public/partials/wonka-slide-public-display.php
- > /wp-content/plugins/wonka-slide/admin/class-wonka-slide-build.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wonka-slide/admin/partials/wonka-slide-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wonka-slide/admin/partials/wonka-slide-add-action-links.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Requires php: Version not formatted correctly
- Plugin Name: You should set the name of your plugin on the first line (
=== Wonka Slide===
) - Screenshots: Add a description for screenshot #2 in wonka-slide/assets to your readme.txt
wonka-slide/wonka-slide.php Passed 13 tests
The entry point to "Wonka Slide" version 1.3.3 is a PHP file that has certain tags in its header comment area
105 characters long description:
Wonka Slide is a plugin that was built to run a lean Slider that is made up of the Posts featured images.
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
No dangerous file extensions were detected782 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 144 | 578 | 333 |
Sass | 2 | 8 | 2 | 267 |
JavaScript | 3 | 15 | 29 | 143 |
CSS | 2 | 2 | 9 | 36 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
There are no PNG files in this plugin