Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▲2.61ms] 75% from 4 tests
Server-side resources used by Novelist
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 936.37ms on /wp-admin/edit.php?post_type=book&page=novelist-extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 46.70 ▲3.18 |
Dashboard /wp-admin | 3.54 ▲0.23 | 53.85 ▲0.16 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 57.38 ▲4.10 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 103.25 ▲2.98 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 43.60 ▲4.46 |
Tools /wp-admin/edit.php?post_type=book&page=novelist-tools | 3.46 | 41.79 |
Getting Started with Novelist /wp-admin/index.php?page=novelist-getting-started | 3.45 | 47.88 |
Series /wp-admin/edit-tags.php?taxonomy=novelist-series&post_type=book | 3.45 | 44.05 |
Genres /wp-admin/edit-tags.php?taxonomy=novelist-genre&post_type=book | 3.45 | 43.60 |
Add New /wp-admin/post-new.php?post_type=book | 3.61 | 113.96 |
Extensions /wp-admin/edit.php?post_type=book&page=novelist-extensions | 3.48 | 936.37 |
Welcome to Novelist /wp-admin/index.php?page=novelist-about | 3.42 | 43.30 |
Novelist Changelog /wp-admin/index.php?page=novelist-changelog | 3.43 | 39.00 |
All Books /wp-admin/edit.php?post_type=book | 3.55 | 56.69 |
Settings /wp-admin/edit.php?post_type=book&page=novelist-settings | 3.47 | 55.79 |
Server storage [IO: ▲1.80MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 84 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_novelist_word_count_widget |
widget_recent-comments |
widget_novelist_book_widget |
theysaidso_admin_options |
widget_novelist_books_by_series_widget |
widget_theysaidso_widget |
db_upgraded |
novelist_version |
novelist_settings |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Novelist
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲33 | 14.38 ▲1.05 | 1.85 ▼0.44 | 43.31 ▼0.36 |
Dashboard /wp-admin | 2,253 ▲44 | 5.89 ▲0.03 | 111.72 ▲12.76 | 37.10 ▼0.23 |
Posts /wp-admin/edit.php | 2,147 ▲55 | 2.06 ▲0.05 | 37.52 ▼14.77 | 32.50 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,922 ▲393 | 23.02 ▲4.83 | 593.64 ▼59.26 | 58.10 ▲3.44 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 4.22 ▲0.10 | 101.11 ▼25.32 | 40.77 ▼4.17 |
Tools /wp-admin/edit.php?post_type=book&page=novelist-tools | 1,144 | 3.79 | 50.33 | 25.54 |
Getting Started with Novelist /wp-admin/index.php?page=novelist-getting-started | 1,169 | 3.54 | 64.49 | 110.17 |
Series /wp-admin/edit-tags.php?taxonomy=novelist-series&post_type=book | 1,312 | 2.14 | 31.57 | 32.65 |
Genres /wp-admin/edit-tags.php?taxonomy=novelist-genre&post_type=book | 1,312 | 2.14 | 30.40 | 31.10 |
Add New /wp-admin/post-new.php?post_type=book | 3,051 | 10.43 | 236.30 | 80.32 |
Extensions /wp-admin/edit.php?post_type=book&page=novelist-extensions | 1,142 | 3.50 | 56.85 | 35.14 |
Welcome to Novelist /wp-admin/index.php?page=novelist-about | 856 | 2.02 | 26.32 | 34.14 |
Novelist Changelog /wp-admin/index.php?page=novelist-changelog | 1,155 | 2.06 | 30.48 | 43.67 |
All Books /wp-admin/edit.php?post_type=book | 1,329 | 3.84 | 65.41 | 34.56 |
Settings /wp-admin/edit.php?post_type=book&page=novelist-settings | 1,752 | 3.48 | 73.52 | 38.64 |
Uninstaller [IO: ✅] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_novelist_book_widget
- can_compress_scripts
- widget_novelist_word_count_widget
- db_upgraded
- widget_theysaidso_widget
- novelist_settings
- novelist_version
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/novelist/templates/widgets/widget-word-count.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/novelist/templates/shortcode-book-content-button.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/novelist/includes/book-filters.php:32
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/novelist/includes/widgets/widget-word-count.php:10
- > PHP Notice
Undefined variable: instance in wp-content/plugins/novelist/templates/widgets/widget-word-count.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/novelist/includes/book-functions.php:413
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/novelist/templates/shortcode-book-content-series-number.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/novelist/includes/widgets/widget-book.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/novelist/templates/widgets/widget-book.php on line 15
- > PHP Notice
Undefined variable: instance in wp-content/plugins/novelist/templates/widgets/widget-book.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: publishing, goodreads, books, authors, writer...
novelist/novelist.php 85% from 13 tests
"Novelist" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected33,913 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 27,270 |
PHP | 42 | 1,478 | 3,208 | 5,552 |
Sass | 14 | 108 | 3 | 622 |
JavaScript | 9 | 134 | 187 | 465 |
CSS | 4 | 0 | 2 | 4 |
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.38 |
Average class complexity | 36.91 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 135 | |
▷ Static methods | 1 | 0.74% |
▷ Public methods | 132 | 97.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.22% |
Functions | 122 | |
▷ Named functions | 119 | 97.54% |
▷ Anonymous functions | 3 | 2.46% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshots/edit-book.png | 15.53KB | 15.32KB | ▼ 1.35% |
assets/images/screenshots/book-template.png | 9.74KB | 8.98KB | ▼ 7.73% |