Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.03ms] Passed 4 tests
Server-side resources used by Chapters for Authors
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.98 ▼1.42 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.64 ▼2.22 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.06 ▲1.65 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 94.02 ▼10.14 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.21 ▲4.17 |
All Chapters /wp-admin/edit.php?post_type=chapters_for_authors | 3.33 | 38.73 |
Books /wp-admin/edit-tags.php?taxonomy=books&post_type=chapters_for_authors | 3.27 | 36.60 |
Add Chapter /wp-admin/post-new.php?post_type=chapters_for_authors | 6.11 | 86.36 |
Characters /wp-admin/edit-tags.php?taxonomy=characters&post_type=chapters_for_authors | 3.27 | 36.41 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Chapters for Authors: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 13.42 ▼0.96 | 9.67 ▲7.95 | 46.83 ▲4.80 |
Dashboard /wp-admin | 2,234 ▲63 | 5.53 ▼0.07 | 82.15 ▼6.81 | 39.87 ▲1.69 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.01 ▼0.02 | 34.56 ▼2.29 | 35.61 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,559 ▲28 | 23.39 ▲0.19 | 668.00 ▲1.19 | 62.92 ▲14.85 |
Media Library /wp-admin/upload.php | 1,442 ▲39 | 4.16 ▼0.07 | 99.63 ▲1.45 | 46.71 ▲4.73 |
All Chapters /wp-admin/edit.php?post_type=chapters_for_authors | 1,136 | 1.99 | 33.82 | 29.86 |
Books /wp-admin/edit-tags.php?taxonomy=books&post_type=chapters_for_authors | 1,310 | 2.17 | 26.60 | 31.03 |
Add Chapter /wp-admin/post-new.php?post_type=chapters_for_authors | 6,231 | 19.86 | 829.53 | 34.44 |
Characters /wp-admin/edit-tags.php?taxonomy=characters&post_type=chapters_for_authors | 1,288 | 2.15 | 27.63 | 32.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/chapters-for-authors/public/partials/chapters-for-authors-public-display.php
- > /wp-content/plugins/chapters-for-authors/admin/partials/chapters-for-authors-admin-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chapters-for-authors/admin/class-chapters-for-authors-custom-post-type.php:86
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chapters-for-authors/admin/class-chapters-for-authors-taxonomies.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chapters-for-authors/admin/class-chapters-for-authors-metaboxes.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: chapters, writers, authors, books
chapters-for-authors/chapters-for-authors.php Passed 13 tests
This is the main PHP file of "Chapters for Authors" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Write your next book from the comfort of your WordPress dashboard.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected360 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 149 | 613 | 350 |
JavaScript | 2 | 4 | 54 | 6 |
Markdown | 1 | 3 | 0 | 4 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 1.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected