Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.74MB] [CPU: ▼129.02ms] Passed 4 tests
An overview of server-side resources used by Books & Papers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲1.06 | 41.71 ▲21.70 |
Dashboard /wp-admin | 3.83 ▲0.77 | 58.67 ▲14.95 |
Posts /wp-admin/edit.php | 3.88 ▲0.77 | 49.39 ▲7.98 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.69 | 99.05 ▼544.21 |
Media Library /wp-admin/upload.php | 3.71 ▲0.71 | 36.30 ▲5.19 |
Server storage [IO: ▲0.36MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: 13 new tables, 36 new options
New tables |
---|
wp_Books_n_Papers_Conference_Authors |
wp_Books_n_Papers_Article_Authors |
wp_Books_n_Papers_Conference_Tag |
wp_Books_n_Papers_Book_Editor |
wp_Books_n_Papers_Book_Authors |
wp_Books_n_Papers_Conferences |
wp_Books_n_Papers_Articles |
wp_Books_n_Papers_Authors |
wp_Books_n_Papers_Book_Tag |
wp_Books_n_Papers_Books |
... |
New WordPress options |
---|
bnpp_article_head |
bnpp_tables_created |
bnpp_comp_perf_auth |
bnpp_article_list |
bnpp_book_list |
bnpp_drop_db_tables |
bnpp_list_division_style |
bnpp_custom_char3_name |
bnpp_custom_char1_name |
bnpp_timeout_step |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Books & Papers
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,757 ▲161 | 16.05 ▲0.44 | 9.52 ▲0.62 | 48.79 ▲0.44 |
Dashboard /wp-admin | 3,024 ▲93 | 5.91 ▼0.26 | 140.05 ▲3.47 | 119.22 ▲10.90 |
Posts /wp-admin/edit.php | 2,790 ▲51 | 2.73 ▲0.00 | 65.07 ▲0.20 | 89.64 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,532 ▼369 | 18.82 ▼0.38 | 358.00 ▼27.30 | 106.61 ▲1.74 |
Media Library /wp-admin/upload.php | 1,861 ▲54 | 5.03 ▲0.01 | 146.22 ▲5.28 | 120.95 ▲0.66 |
Manage Authors /wp-admin/bnpp_manage-authors-u.php | 26 | 0.90 | 0.06 | 11.76 |
Books and Papers /wp-admin/bnpp_books-n-papers.php | 26 | 0.90 | 0.11 | 10.04 |
Add Work /wp-admin/bnpp_add-paper-u.php | 26 | 0.90 | 0.06 | 9.25 |
Manage Works /wp-admin/bnpp_manage-papers-u.php | 26 | 0.90 | 0.10 | 10.70 |
Books and Papers /wp-admin/bnpp_paper-settings-u.php | 26 | 0.90 | 0.05 | 9.43 |
Add Author /wp-admin/bnpp_add-author-u.php | 26 | 0.90 | 0.06 | 9.70 |
Import Works /wp-admin/bnpp_import-papers-u.php | 26 | 0.90 | 0.06 | 9.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables were found after uninstall: 13 tables
- wp_Books_n_Papers_Book_Editor
- wp_Books_n_Papers_Article_Tag
- wp_Books_n_Papers_Book_Tag
- wp_Books_n_Papers_Conferences
- wp_Books_n_Papers_Conference_Tag
- wp_Books_n_Papers_Books
- wp_Books_n_Papers_Book_Authors
- wp_Books_n_Papers_Tags
- wp_Books_n_Papers_Conference_Authors
- wp_Books_n_Papers_Article_Authors
- ...
- The uninstall procedure has failed, leaving 36 options in the database
- bnpp_list_division_style
- bnpp_upload_dir_abs
- bnpp_custom_char3_value
- bnpp_comp_lbracket
- bnpp_list_order
- bnpp_article_head
- bnpp_book_head
- bnpp_custom_char2_name
- bnpp_conference_head
- bnpp_previous_db_prefix
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/books-papers/pages/title-page.php
- > /wp-content/plugins/books-papers/pages/loadAnimation.php
- > /wp-content/plugins/books-papers/pages/add-author-page.php
- > /wp-content/plugins/books-papers/pages/import-data-page.php
- 71× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include(): Failed opening 'bnpp_plugin_dir./pages/loadAnimation.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/books-papers/pages/settings-page.php on line 1
- > PHP Warning
include(bnpp_plugin_dir./pages/style.css): failed to open stream: No such file or directory in wp-content/plugins/books-papers/pages/import-data-page.php on line 3
- > PHP Warning
include(bnpp_plugin_dir./pages/style.css): failed to open stream: No such file or directory in wp-content/plugins/books-papers/pages/settings-page.php on line 3
- > PHP Warning
include(): Failed opening 'bnpp_plugin_dir./pages/loadAnimation.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/books-papers/pages/add-author-page.php on line 1
- > PHP Warning
Use of undefined constant bnpp_plugin_dir - assumed 'bnpp_plugin_dir' (this will throw an Error in a future version of PHP) in wp-content/plugins/books-papers/pages/add-paper-page.php on line 1
- > PHP Warning
include(bnpp_plugin_dir./pages/loadAnimation.php): failed to open stream: No such file or directory in wp-content/plugins/books-papers/pages/import-data-page.php on line 1
- > PHP Warning
Use of undefined constant bnpp_plugin_dir - assumed 'bnpp_plugin_dir' (this will throw an Error in a future version of PHP) in wp-content/plugins/books-papers/pages/manage-author-page.php on line 1
- > PHP Warning
include(bnpp_plugin_dir./pages/loadAnimation.php): failed to open stream: No such file or directory in wp-content/plugins/books-papers/pages/add-paper-page.php on line 1
- > PHP Warning
include(): Failed opening 'bnpp_plugin_dir./pages/style.css' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/books-papers/pages/manage-papers-page.php on line 4
- > PHP Warning
include(bnpp_plugin_dir./pages/loadAnimation.php): failed to open stream: No such file or directory in wp-content/plugins/books-papers/pages/manage-author-page.php on line 1
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/bnpp_manage-authors-u.php
- > Network (severe)
wp-admin/bnpp_manage-authors-u.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/bnpp_books-n-papers.php
- > Network (severe)
wp-admin/bnpp_books-n-papers.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/bnpp_add-paper-u.php
- > Network (severe)
wp-admin/bnpp_add-paper-u.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/bnpp_manage-papers-u.php
- > Network (severe)
wp-admin/bnpp_manage-papers-u.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/bnpp_paper-settings-u.php
- > Network (severe)
wp-admin/bnpp_paper-settings-u.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/bnpp_add-author-u.php
- > Network (severe)
wp-admin/bnpp_add-author-u.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/bnpp_import-papers-u.php
- > Network (severe)
wp-admin/bnpp_import-papers-u.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
books-papers/books-n-papers.php 92% from 13 tests
The main file in "Books & Papers" v. 0.20210223 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("books-papers.php" instead of "books-n-papers.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8,226 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 77 | 104 | 6,832 |
JavaScript | 8 | 2 | 42 | 1,262 |
CSS | 1 | 0 | 0 | 103 |
Markdown | 1 | 8 | 0 | 29 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 119.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 576.00 |
Average method complexity | 12.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 4 | 5.71% |
▷ Public methods | 54 | 77.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 22.86% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There are no PNG files in this plugin