Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/my-google-books-library/my-google-books-library.php+34
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.07ms] Passed 4 tests
An overview of server-side resources used by My Google Books Library
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.32 ▼40.42 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.65 ▼44.82 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.35 ▼41.37 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.45 ▼89.66 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.81 ▼29.16 |
My Google Books Library /wp-admin/options-general.php?page=my-google-books-library/my-google-books-library.php | 2.05 | 5.96 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_my_google_books_library_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
my_google_books_library_settings |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for My Google Books Library
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.25 ▼1.13 | 1.49 ▼0.35 | 40.55 ▼7.00 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.95 | 99.31 ▼23.70 | 36.37 ▼8.18 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 38.06 ▲3.90 | 35.64 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.46 ▼4.62 | 608.87 ▼81.71 | 59.00 ▲4.15 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.26 ▲0.09 | 94.77 ▼52.89 | 43.13 ▼13.55 |
My Google Books Library /wp-admin/options-general.php?page=my-google-books-library/my-google-books-library.php | 894 | 2.04 | 24.40 | 26.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/my-google-books-library/my-google-books-library.php+34
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- widget_my_google_books_library_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=my-google-books-library/my-google-books-library.php
- > Deprecated in wp-content/plugins/my-google-books-library/my-google-books-library.php+34
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=my-google-books-library/my-google-books-library.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in my_google_books_library_widget is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/my-google-books-library/my-google-books-library.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (18 tag instead of maximum 10)
- Screenshots: These screenshots do not have images: #1 (An example of how the plugin functions and works on the new twentytwelve theme.), #2 (Example of how the shortcode is used on a page.), #3 (My Google Books Library Settings page), #4 (My Google Books Library widgets)
- Plugin Name: You should set the name of your plugin on the first line (
=== my-google-books-library ===
)
my-google-books-library/my-google-books-library.php 92% from 13 tests
Analyzing the main PHP file in "My Google Books Library" version 1.2
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected322 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 79 | 53 | 322 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.33MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 36.37KB | 13.18KB | ▼ 63.76% |
screenshot-3.png | 138.56KB | 49.73KB | ▼ 64.11% |
screenshot-1.png | 117.90KB | 36.89KB | ▼ 68.71% |
screenshot-2.png | 29.77KB | 11.70KB | ▼ 60.69% |
book.png | 17.68KB | 8.13KB | ▼ 53.99% |