Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.47ms] Passed 4 tests
Analyzing server-side resources used by Books Library
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 42.82 ▼0.47 |
Dashboard /wp-admin | 3.39 ▲0.08 | 51.56 ▲2.52 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.29 ▲0.25 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.97 ▼4.17 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 42.42 ▲8.56 |
Author /wp-admin/edit-tags.php?taxonomy=book_author&post_type=books | 3.30 | 44.74 |
Add New /wp-admin/post-new.php?post_type=books | 3.44 | 57.38 |
All Books /wp-admin/edit.php?post_type=books | 3.35 | 40.24 |
Publisher /wp-admin/edit-tags.php?taxonomy=book_publisher&post_type=books | 3.30 | 36.19 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Books Library: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲179 | 15.15 ▲0.78 | 34.32 ▲32.27 | 43.30 ▼2.64 |
Dashboard /wp-admin | 2,244 ▲53 | 4.87 ▼0.97 | 99.46 ▼9.02 | 41.91 ▼1.09 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.00 ▲0.00 | 34.80 ▼0.66 | 38.56 ▲5.94 |
Add New Post /wp-admin/post-new.php | 6,381 ▲4,864 | 27.75 ▲10.01 | 915.92 ▲302.96 | 38.86 ▼18.02 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.25 ▲0.01 | 112.95 ▲10.15 | 48.42 ▲0.40 |
Author /wp-admin/edit-tags.php?taxonomy=book_author&post_type=books | 1,294 | 2.14 | 30.18 | 29.72 |
Add New /wp-admin/post-new.php?post_type=books | 2,450 | 7.82 | 179.93 | 69.00 |
All Books /wp-admin/edit.php?post_type=books | 1,088 | 1.96 | 30.28 | 29.56 |
Publisher /wp-admin/edit-tags.php?taxonomy=book_publisher&post_type=books | 1,294 | 2.14 | 26.99 | 28.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/books-library/inc/books_meta.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/books-library/index.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/books-library/inc/endpoints.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: library, filter, books library, book, react...
books-library/index.php 92% from 13 tests
This is the main PHP file of "Books Library" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("books-library.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,957 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 32 | 55 | 3,516 |
PHP | 3 | 41 | 49 | 272 |
CSS | 2 | 4 | 4 | 95 |
JSON | 2 | 0 | 0 | 52 |
SVG | 1 | 0 | 1 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin