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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.04ms] Passed 4 tests
This is a short check of server-side resources used by Listenability
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.11 ▼1.95 |
Dashboard /wp-admin | 3.36 ▲0.05 | 45.75 ▼5.66 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.56 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.01 ▼23.27 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.23 ▲3.62 |
Listenability Status /wp-admin/edit-tags.php?taxonomy=listenability_status | 3.36 | 37.14 |
Listenability /wp-admin/options-general.php?page=listenability | 3.24 | 33.33 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Listenability
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.35 ▼0.06 | 1.81 ▲0.19 | 39.34 ▲0.12 |
Dashboard /wp-admin | 2,212 ▲34 | 5.54 ▼0.18 | 88.63 ▼23.08 | 41.47 ▲1.84 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 2.00 ▼0.03 | 39.38 ▼2.48 | 38.14 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.73 ▲0.45 | 692.13 ▲77.77 | 53.87 ▲0.88 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.22 ▼0.01 | 94.37 ▼9.45 | 45.44 ▲0.53 |
Listenability Status /wp-admin/edit-tags.php?taxonomy=listenability_status | 1,266 | 2.24 | 30.91 | 33.27 |
Listenability /wp-admin/options-general.php?page=listenability | 979 | 2.28 | 23.60 | 29.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- 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 | 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/listenability/bin/speechify.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/listenability/tests/test-plugin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Listenability\\add_action() in wp-content/plugins/listenability/php/class-plugin.php:86
- > PHP Fatal error
Uncaught Error: Class 'Listenability\\Plugin_Base' not found in wp-content/plugins/listenability/php/class-plugin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function Listenability\\get_query_var() in wp-content/plugins/listenability/php/template-singular.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
3 plugin tags: speech, podcast, tts
listenability/listenability.php 85% from 13 tests
"Listenability" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,033 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 197 | 356 | 993 |
Markdown | 1 | 22 | 0 | 37 |
CSS | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 3 | 7.50% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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 images were found in this plugin