Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼142.22ms] Passed 4 tests
Server-side resources used by WP Book Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 35.09 ▲11.78 |
Dashboard /wp-admin | 3.10 ▲0.04 | 46.47 ▲0.49 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 46.63 ▼5.01 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 96.66 ▼567.62 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 35.57 ▲3.26 |
Add New /wp-admin/post-new.php?post_type=book | 3.16 | 56.13 |
All Books /wp-admin/edit.php?post_type=book | 3.08 | 35.07 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Book Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲122 | 15.93 ▲0.48 | 7.35 ▼1.03 | 45.92 ▼3.13 |
Dashboard /wp-admin | 3,005 ▲74 | 5.94 ▼0.24 | 139.01 ▼35.07 | 115.06 ▼6.51 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.71 ▲0.01 | 66.80 ▼1.50 | 97.29 ▲4.17 |
Add New Post /wp-admin/post-new.php | 1,523 ▼160 | 18.80 ▲0.45 | 357.18 ▼40.75 | 109.12 ▼9.32 |
Media Library /wp-admin/upload.php | 1,845 ▲38 | 5.00 ▼0.00 | 161.59 ▲4.78 | 117.84 ▼10.96 |
Add New /wp-admin/post-new.php?post_type=book | 3,688 | 9.14 | 234.50 | 152.46 |
All Books /wp-admin/edit.php?post_type=book | 1,479 | 2.62 | 61.39 | 82.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-book-manager/index.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-book-manager/form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-book-manager/single-book.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-book-manager/archive-book.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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: book detail view, book, book publisher form, book manager, book list
wp-book-manager/index.php 92% from 13 tests
Analyzing the main PHP file in "WP Book Manager" version 1.0.1
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-book-manager.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin186 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 20 | 16 | 186 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected