Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.10MB] [CPU: ▲23.66ms] 75% from 4 tests
This is a short check of server-side resources used by WordPress Books Gallery
Please take the time to fix the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.10MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.91 ▲5.45 | 64.15 ▲27.23 |
Dashboard /wp-admin | 8.93 ▲5.59 | 71.63 ▲13.98 |
Posts /wp-admin/edit.php | 8.93 ▲5.58 | 74.72 ▲25.00 |
Add New Post /wp-admin/post-new.php | 9.67 ▲3.78 | 132.21 ▲28.42 |
Media Library /wp-admin/upload.php | 8.93 ▲5.70 | 67.13 ▲31.14 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.93 | 59.54 |
Server storage [IO: ▲5.27MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 298 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
fs_accounts |
db_upgraded |
fs_active_plugins |
widget_theysaidso_widget |
widget_recent-posts |
fs_debug_mode |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Books Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲232 | 13.79 ▼0.77 | 7.30 ▲5.81 | 27.20 ▼29.57 |
Dashboard /wp-admin | 2,260 ▲80 | 5.85 ▲0.19 | 95.91 ▲10.57 | 42.53 ▼0.52 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 2.48 ▲0.47 | 38.75 ▲3.08 | 33.99 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,582 ▲54 | 18.15 ▼5.19 | 629.88 ▼43.00 | 47.52 ▼10.87 |
Media Library /wp-admin/upload.php | 1,465 ▲71 | 4.52 ▲0.31 | 96.14 ▼4.94 | 42.83 ▼0.24 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,130 | 2.14 | 31.31 | 27.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-books-gallery/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- fs_debug_mode
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- fs_accounts
- widget_recent-posts
- fs_active_plugins
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-books-gallery/wp-books-gallery.php 92% from 13 tests
The entry point to "WordPress Books Gallery" version 4.5.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis 97% from 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
There were no executable files found in this plugin50,091 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 166 | 8,515 | 17,475 | 41,512 |
PO File | 12 | 3,230 | 5,019 | 7,025 |
CSS | 20 | 207 | 41 | 1,139 |
JavaScript | 8 | 56 | 69 | 386 |
XML | 1 | 3 | 0 | 16 |
SVG | 1 | 1 | 0 | 13 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 76.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 8 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,339 | |
▷ Static methods | 199 | 14.86% |
▷ Public methods | 928 | 69.31% |
▷ Protected methods | 34 | 2.54% |
▷ Private methods | 377 | 28.16% |
Functions | 109 | |
▷ Named functions | 108 | 99.08% |
▷ Anonymous functions | 1 | 0.92% |
Constants | 152 | |
▷ Global constants | 105 | 69.08% |
▷ Class constants | 47 | 30.92% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |