Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▲2.35ms] Passed 4 tests
A check of server-side resources used by WP ANIGRAB
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 43.59 ▲1.05 |
Dashboard /wp-admin | 3.66 ▲0.36 | 48.85 ▼0.32 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 54.39 ▲6.90 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 95.39 ▲2.50 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 39.18 ▲6.17 |
Server storage [IO: ▲1.49MB] [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: 395 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP ANIGRAB
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.30 ▼0.99 | 2.05 ▼0.17 | 36.66 ▼12.45 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.98 | 107.27 ▲0.92 | 39.46 ▼1.18 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.06 | 39.61 ▲1.14 | 36.24 ▼3.20 |
Add New Post /wp-admin/post-new.php | 1,534 ▲11 | 21.06 ▼2.15 | 684.58 ▲23.09 | 52.95 ▼6.71 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.01 | 96.05 ▲2.46 | 43.27 ▲0.55 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-anigrab/vendor/mustache/mustache/bin/build_bootstrap.php
- > /wp-content/plugins/wp-anigrab/tests/bootstrap.php
- > /wp-content/plugins/wp-anigrab/wp-anigrab.php
- 169× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-anigrab/vendor/mustache/mustache/test/Mustache/Test/Logger/StreamLoggerTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'Jikan\\Lib\\Parser\\TemplateParse' not found in wp-content/plugins/wp-anigrab/vendor/jikan-me/jikan/src/Lib/Parser/PersonParse.php:12
- > PHP Fatal error
Uncaught Error: Class 'Jikan\\Get\\Get' not found in wp-content/plugins/wp-anigrab/vendor/jikan-me/jikan/src/Get/Manga.php:18
- > PHP Fatal error
Uncaught Error: Class 'Jikan\\Model\\Model' not found in wp-content/plugins/wp-anigrab/vendor/jikan-me/jikan/src/Model/MangaNews.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-anigrab/vendor/mustache/mustache/test/Mustache/Test/Functional/CallTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/wp-anigrab/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Class 'Jikan\\Get\\Get' not found in wp-content/plugins/wp-anigrab/vendor/jikan-me/jikan/src/Get/Anime.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-anigrab/vendor/mustache/mustache/test/Mustache/Test/AutoloaderTest.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wp-anigrab/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/wp-anigrab/vendor/guzzlehttp/guzzle/src/Pool.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
3 plugin tags: grab, manga, anime
wp-anigrab/wp-anigrab.php Passed 13 tests
"WP ANIGRAB" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
grab anime info and save to local WordPress post
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .ms - Maxwell Script in Maxwell Render
- ☣ wp-content/plugins/wp-anigrab/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
- ☣ wp-content/plugins/wp-anigrab/vendor/mustache/mustache/test/fixtures/templates/beta.ms
- .ms - Maxwell Script in Maxwell Render
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 276 | 4,189 | 8,922 | 19,240 |
Markdown | 15 | 1,121 | 0 | 3,721 |
JSON | 9 | 0 | 0 | 630 |
Mustache | 36 | 1 | 0 | 145 |
Bourne Shell | 1 | 21 | 11 | 120 |
YAML | 4 | 15 | 0 | 61 |
XML | 4 | 6 | 0 | 59 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 20 | |
Traits | 2 | |
Classes | 254 | |
▷ Abstract classes | 8 | 3.15% |
▷ Concrete classes | 246 | 96.85% |
▷ Final classes | 8 | 3.25% |
Methods | 1,190 | |
▷ Static methods | 95 | 7.98% |
▷ Public methods | 994 | 83.53% |
▷ Protected methods | 23 | 1.93% |
▷ Private methods | 173 | 14.54% |
Functions | 299 | |
▷ Named functions | 57 | 19.06% |
▷ Anonymous functions | 242 | 80.94% |
Constants | 265 | |
▷ Global constants | 140 | 52.83% |
▷ Class constants | 125 | 47.17% |
▷ Public constants | 125 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 237.93KB | 84.17KB | ▼ 64.62% |