Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▲392.51ms] 75% from 4 tests
Server-side resources used by Speaker Lite
Please fix the following
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 392.51ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 484.99 ▲442.39 |
Dashboard /wp-admin | 3.44 ▲0.14 | 356.05 ▲309.09 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 482.99 ▲435.53 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 583.35 ▲485.07 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 417.18 ▲383.01 |
Server storage [IO: ▲10.06MB] [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: 1,081 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Speaker Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲203 | 13.58 ▼1.07 | 5.16 ▲3.15 | 38.68 ▼12.52 |
Dashboard /wp-admin | 2,251 ▲63 | 4.86 ▼0.03 | 101.51 ▲0.10 | 41.93 ▼2.00 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 1.97 ▼0.07 | 34.10 ▼3.68 | 34.49 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,709 ▲179 | 21.45 ▲3.16 | 620.52 ▲9.62 | 38.43 ▼11.81 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.18 ▼0.03 | 93.89 ▼4.30 | 40.71 ▼6.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/speaker-lite/uninstall.php+93
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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
- 504× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/speaker-lite/vendor/google/common-protos/src/Iam/Admin/V1/ServiceAccountKey.php:29
- > PHP Fatal error
Trait 'Google\\ApiCore\\GapicClientTrait' not found in wp-content/plugins/speaker-lite/vendor/google/gax/src/LongRunning/Gapic/OperationsGapicClient.php on line 96
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/speaker-lite/vendor/google/common-protos/src/Cloud/ServiceManagement/V1/DisableServiceRequest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/speaker-lite/vendor/google/protobuf/src/Google/Protobuf/Enum.php:16
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/speaker-lite/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Grpc\\Gcp\\GcpBaseCall' not found in wp-content/plugins/speaker-lite/vendor/google/grpc-gcp/src/GCPBidiStreamingCall.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/speaker-lite/vendor/google/cloud-text-to-speech/src/V1/Voice.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/speaker-lite/vendor/google/common-protos/src/Api/Expr/V1beta1/SourcePosition.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/speaker-lite/vendor/google/common-protos/src/Api/Expr/V1beta1/Expr/CreateStruct/Entry.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/speaker-lite/vendor/google/common-protos/src/Api/Expr/V1alpha1/ListValue.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== speaker-lite ===
) - Tags: You are using too many tags: 12 tag instead of maximum 10
speaker-lite/speaker-lite.php 92% from 13 tests
The main file in "Speaker Lite" v. 1.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin93,429 lines of code in 1,046 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 928 | 15,192 | 61,531 | 62,353 |
JavaScript | 18 | 5,022 | 8,754 | 15,267 |
CSS | 22 | 891 | 716 | 9,460 |
Markdown | 31 | 1,482 | 0 | 4,456 |
JSON | 24 | 0 | 0 | 1,563 |
Bourne Shell | 4 | 25 | 56 | 88 |
SVG | 11 | 0 | 2 | 65 |
Protocol Buffers | 2 | 14 | 38 | 64 |
XML | 4 | 0 | 1 | 57 |
Python | 1 | 16 | 40 | 47 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 433.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 127 | |
Interfaces | 33 | |
Traits | 18 | |
Classes | 859 | |
▷ Abstract classes | 5 | 0.58% |
▷ Concrete classes | 854 | 99.42% |
▷ Final classes | 50 | 5.85% |
Methods | 5,621 | |
▷ Static methods | 628 | 11.17% |
▷ Public methods | 5,081 | 90.39% |
▷ Protected methods | 136 | 2.42% |
▷ Private methods | 404 | 7.19% |
Functions | 236 | |
▷ Named functions | 74 | 31.36% |
▷ Anonymous functions | 162 | 68.64% |
Constants | 520 | |
▷ Global constants | 24 | 4.62% |
▷ Class constants | 496 | 95.38% |
▷ Public constants | 496 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sort_asc.png | 1.00KB | 0.17KB | ▼ 82.94% |
images/sort_desc.png | 1.07KB | 0.17KB | ▼ 84.18% |
images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_both.png | 0.93KB | 0.09KB | ▼ 89.78% |
images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |