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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.09ms] Passed 4 tests
Server-side resources used by Embed Kindle
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.62 ▼1.66 |
Dashboard /wp-admin | 3.34 ▼0.00 | 43.99 ▼15.98 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.09 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 96.33 ▼8.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 31.09 ▼10.12 |
Embed Kindle /wp-admin/options-general.php?page=akky_embed_kindle | 3.21 | 31.34 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Embed Kindle
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.56 ▼1.00 | 1.96 ▲0.19 | 36.55 ▼7.47 |
Dashboard /wp-admin | 2,212 ▲21 | 5.83 ▲0.92 | 96.65 ▼8.45 | 40.29 ▼0.32 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.01 | 38.81 ▼1.38 | 36.50 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,522 ▲2 | 23.04 ▼0.22 | 658.53 ▲37.69 | 57.10 ▼0.67 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.25 ▲0.02 | 95.09 ▼6.47 | 41.87 ▼1.52 |
Embed Kindle /wp-admin/options-general.php?page=akky_embed_kindle | 777 | 2.05 | 25.56 | 31.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=akky_embed_kindle
- > Notice in wp-content/plugins/embed-kindle/includes/Akky/EmbedKindle.php+186
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/embed-kindle/includes/Akky/EmbedKindle.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=akky_embed_kindle
- > Network (severe)
http://kindleweb.s3.amazonaws.com/app/KindleReader-min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Kindle Reader embedded on a post) image required
- Tags: You are using too many tags: 13 tag instead of maximum 10
embed-kindle/embed-kindle.php Passed 13 tests
The main PHP script in "Embed Kindle" version 1.0.1 is automatically included on every request by WordPress
19 characters long description:
embed Kindle e-book
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected225 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 14 | 192 |
PO File | 1 | 81 | 248 | 33 |
PHP code Passed 2 tests
An overview 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.14 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 1 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 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
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 70.90KB | 22.86KB | ▼ 67.75% |