Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼135.87ms] Passed 4 tests
Analyzing server-side resources used by WordsTree Pocket Navigator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.13 | 37.15 ▲5.53 |
Dashboard /wp-admin | 3.26 ▲0.20 | 40.86 ▼1.01 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 39.51 ▼5.87 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 99.48 ▼535.81 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 33.07 ▼0.80 |
WTPN Settings /wp-admin/options-general.php?page=wtpn-pocket-nav | 3.11 | 28.61 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 183 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordsTree Pocket Navigator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲201 | 16.33 ▲0.64 | 11.79 ▲1.26 | 49.50 ▲0.72 |
Dashboard /wp-admin | 2,976 ▲45 | 5.86 ▼0.19 | 137.95 ▼4.51 | 109.07 ▲1.68 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.71 ▲0.01 | 60.13 ▼8.44 | 86.03 ▼8.60 |
Add New Post /wp-admin/post-new.php | 1,557 ▼58 | 18.46 ▼3.03 | 382.01 ▲89.46 | 121.04 ▼1.09 |
Media Library /wp-admin/upload.php | 1,819 ▲12 | 5.04 ▲0.01 | 143.91 ▼13.66 | 135.30 ▲20.09 |
WTPN Settings /wp-admin/options-general.php?page=wtpn-pocket-nav | 1,029 | 2.34 | 54.95 | 71.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wt-pocket-navigator/vendor/djchen/pocket-api-php/sample.php
- > /wp-content/plugins/wt-pocket-navigator/admin/partials/wtpn-pocket-nav-admin-display.php
- > /wp-content/plugins/wt-pocket-navigator/public/partials/wtpn-pocket-nav-public-display.php
- 72× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'Pocket.php' (include_path='.:/usr/share/php') in wp-content/plugins/wt-pocket-navigator/vendor/djchen/pocket-api-php/sample.php on line 17
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wt-pocket-navigator/vendor/guzzlehttp/psr7/src/Stream.php:11
- > PHP Warning
require_once(wp-content/plugins/wt-pocket-navigator/vendor/league/oauth1-client/resources/examples/../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wt-pocket-navigator/vendor/league/oauth1-client/resources/examples/twitter.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth1\\Client\\Credentials\\Credentials' not found in wp-content/plugins/wt-pocket-navigator/vendor/league/oauth1-client/src/Client/Credentials/TokenCredentials.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/wt-pocket-navigator/vendor/guzzlehttp/psr7/src/Response.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/wt-pocket-navigator/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth1\\Client\\Signature\\Signature' not found in wp-content/plugins/wt-pocket-navigator/vendor/league/oauth1-client/src/Client/Signature/PlainTextSignature.php:5
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth1\\Client\\Server\\Server' not found in wp-content/plugins/wt-pocket-navigator/vendor/league/oauth1-client/src/Client/Server/Trello.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wt-pocket-navigator/vendor/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wt-pocket-navigator/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: widget, pocket, wordpress, plugins, utilities...
wt-pocket-navigator/wtpn-pocket-nav.php 77% from 13 tests
"WordsTree Pocket Navigator" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wt-pocket-navigator.php" instead of "wtpn-pocket-nav.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin14,080 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 2,416 | 6,476 | 10,314 |
Markdown | 14 | 1,043 | 0 | 3,357 |
JSON | 8 | 0 | 0 | 262 |
YAML | 2 | 4 | 0 | 53 |
CSS | 2 | 15 | 10 | 51 |
XML | 1 | 0 | 0 | 28 |
make | 1 | 4 | 0 | 9 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 17 | |
Traits | 2 | |
Classes | 97 | |
▷ Abstract classes | 3 | 3.09% |
▷ Concrete classes | 94 | 96.91% |
▷ Final classes | 7 | 7.45% |
Methods | 886 | |
▷ Static methods | 65 | 7.34% |
▷ Public methods | 725 | 81.83% |
▷ Protected methods | 41 | 4.63% |
▷ Private methods | 120 | 13.54% |
Functions | 156 | |
▷ Named functions | 56 | 35.90% |
▷ Anonymous functions | 100 | 64.10% |
Constants | 54 | |
▷ Global constants | 1 | 1.85% |
▷ Class constants | 53 | 98.15% |
▷ Public constants | 53 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.62MB with 0.44MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 25.92KB | 7.60KB | ▼ 70.67% |
assets/screenshot-1.png | 531.51KB | 164.87KB | ▼ 68.98% |
assets/screenshot-2.png | 54.25KB | 14.40KB | ▼ 73.46% |
assets/screenshot-3.png | 26.79KB | 7.57KB | ▼ 71.77% |