Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼14.40ms] Passed 4 tests
This is a short check of server-side resources used by LT Unleashed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.98 ▼11.22 |
Dashboard /wp-admin | 3.34 ▼0.00 | 48.41 ▼19.25 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.68 ▼3.66 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.60 ▼23.47 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.99 ▲0.04 |
LibraryThing /wp-admin/options-general.php?page=libarything-unleashed-options | 3.24 | 32.82 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_librarything-unleashed |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by LT Unleashed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.70 ▲0.35 | 2.10 ▲0.31 | 46.01 ▲1.34 |
Dashboard /wp-admin | 2,202 ▲28 | 5.65 ▲0.12 | 84.36 ▼15.58 | 39.65 ▼6.14 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.01 | 33.91 ▼10.07 | 35.82 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,539 ▲2 | 18.36 ▲0.08 | 622.74 ▼19.03 | 85.38 ▲9.21 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.11 | 102.34 ▼0.87 | 42.44 ▼1.63 |
LibraryThing /wp-admin/options-general.php?page=libarything-unleashed-options | 940 | 2.03 | 25.64 | 34.99 |
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
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_librarything-unleashed
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lt-unleashed/templates/list.php
- > /wp-content/plugins/lt-unleashed/templates/covers.php
- 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ApaiIO\\ResponseTransformer\\ResponseTransformerInterface' not found in wp-content/plugins/lt-unleashed/includes/ApaiIO/ResponseTransformer/XmlToSimpleXmlObject.php:25
- > PHP Fatal error
Uncaught Error: Class 'ApaiIO\\Operations\\AbstractOperation' not found in wp-content/plugins/lt-unleashed/includes/ApaiIO/Operations/CartClear.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lt-unleashed/lt-unleashed.php:28
- > PHP Fatal error
Uncaught Error: Class 'ApaiIO\\Operations\\AbstractOperation' not found in wp-content/plugins/lt-unleashed/includes/ApaiIO/Operations/SimilarityLookup.php:26
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/lt-unleashed/templates/list.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'ApaiIO\\Operations\\AbstractOperation' not found in wp-content/plugins/lt-unleashed/includes/ApaiIO/Operations/CartCreate.php:26
- > PHP Fatal error
Uncaught Error: Interface 'ApaiIO\\Request\\RequestInterface' not found in wp-content/plugins/lt-unleashed/includes/ApaiIO/Request/Soap/Request.php:31
- > PHP Fatal error
Uncaught Error: Interface 'ApaiIO\\ResponseTransformer\\ResponseTransformerInterface' not found in wp-content/plugins/lt-unleashed/includes/ApaiIO/ResponseTransformer/ObjectToArray.php:25
- > PHP Fatal error
Uncaught Error: Interface 'ApaiIO\\ResponseTransformer\\ResponseTransformerInterface' not found in wp-content/plugins/lt-unleashed/includes/ApaiIO/ResponseTransformer/Xslt.php:25
- > PHP Fatal error
Uncaught Error: Class 'ApaiIO\\Operations\\AbstractOperation' not found in wp-content/plugins/lt-unleashed/includes/ApaiIO/Operations/BrowseNodeLookup.php:26
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: widget, shortcode, book, librarything
lt-unleashed/lt-unleashed.php Passed 13 tests
The main PHP script in "LT Unleashed" version 1.1.1 is automatically included on every request by WordPress
94 characters long description:
Offers shortcodes and widgets to display any public LibraryThing books collection in WordPress
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
Success! There were no dangerous files found in this plugin1,768 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 399 | 1,174 | 1,575 |
CSS | 1 | 44 | 0 | 187 |
JavaScript | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 4 | |
Traits | 1 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 1 | 4.17% |
Methods | 143 | |
▷ Static methods | 9 | 6.29% |
▷ Public methods | 126 | 88.11% |
▷ Protected methods | 13 | 9.09% |
▷ Private methods | 4 | 2.80% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 4 | 28.57% |
▷ Class constants | 10 | 71.43% |
▷ Public constants | 10 | 100.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
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/google.png | 0.67KB | 0.60KB | ▼ 9.54% |
images/stars.png | 0.57KB | 0.50KB | ▼ 12.07% |
images/librarything1.png | 0.28KB | 0.18KB | ▼ 34.04% |
images/icons/book_add.png | 0.70KB | 0.95KB | 0.00% |
images/icons/librarything.png | 0.30KB | 0.18KB | ▼ 38.16% |