Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼17.14ms] Passed 4 tests
This is a short check of server-side resources used by Kitsu API List
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 43.50 ▲2.64 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.58 ▼7.55 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 49.92 ▼0.24 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 94.60 ▼63.40 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.48 ▲3.55 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_kitsu-api-list_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Kitsu API List
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲31 | 13.59 ▼0.62 | 1.68 ▼0.81 | 44.98 ▲0.78 |
Dashboard /wp-admin | 2,224 ▲18 | 5.90 ▲0.01 | 108.55 ▼5.52 | 41.35 ▼2.78 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▼0.01 | 41.10 ▲1.32 | 35.61 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.29 ▲0.03 | 676.43 ▲28.68 | 54.61 ▼1.78 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.07 | 97.02 ▼11.42 | 42.58 ▼14.20 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_kitsu-api-list_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/kitsu-api-list/public/partials/kitsu-api-list-widget-display.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/kitsu-api-list/public/partials/kitsu-api-list-widget-display.php on line 7
- > PHP Notice
Undefined variable: list in wp-content/plugins/kitsu-api-list/public/partials/kitsu-api-list-widget-display.php on line 7
- > PHP Notice
Undefined variable: instance in wp-content/plugins/kitsu-api-list/public/partials/kitsu-api-list-widget-display.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/kitsu-api-list/admin/partials/kitsu-api-list-widget-admin-display.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/kitsu-api-list/public/partials/kitsu-api-list-widget-display.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kitsu-api-list/public/class-kitsu-api-list-widget.php:4
- > PHP Notice
Undefined variable: instance in wp-content/plugins/kitsu-api-list/public/partials/kitsu-api-list-widget-display.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/kitsu-api-list/public/partials/kitsu-api-list-widget-display.php on line 1
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were found
kitsu-api-list/kitsu-api-list.php Passed 13 tests
The entry point to "Kitsu API List" version 1.0.0 is a PHP file that has certain tags in its header comment area
137 characters long description:
Kitsu API List is a widget that allows you a list of anime or manga from their database, while giving the ability to customize your list.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected334 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 143 | 520 | 308 |
CSS | 1 | 5 | 4 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 7 | 21.21% |
▷ Public methods | 24 | 72.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 27.27% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected