Benchmarks
Plugin footprint Passed 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.47MB] [CPU: ▼141.36ms] Passed 4 tests
Analyzing server-side resources used by DeMomentSomTres Books
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.30 ▲0.58 | 38.74 ▲16.55 |
Dashboard /wp-admin | 3.56 ▲0.51 | 42.66 ▼2.13 |
Posts /wp-admin/edit.php | 3.61 ▲0.50 | 45.84 ▲5.85 |
Add New Post /wp-admin/post-new.php | 5.86 ▲0.42 | 87.86 ▼564.96 |
Media Library /wp-admin/upload.php | 3.44 ▲0.44 | 31.86 ▼4.19 |
Book Categories /wp-admin/edit-tags.php?taxonomy=book-category&post_type=book | 3.44 | 38.08 |
All Books /wp-admin/edit.php?post_type=book | 3.55 | 36.98 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.51 | 32.07 |
Add New /wp-admin/post-new.php?post_type=book | 3.64 | 52.97 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for DeMomentSomTres Books
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,787 ▲191 | 15.91 ▲0.39 | 8.88 ▼2.61 | 50.58 ▲1.80 |
Dashboard /wp-admin | 3,053 ▲119 | 5.93 ▼0.03 | 136.06 ▼4.70 | 120.67 ▲5.61 |
Posts /wp-admin/edit.php | 2,832 ▲93 | 2.86 ▲0.13 | 68.26 ▲3.62 | 91.73 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,728 ▲228 | 18.78 ▼0.04 | 364.42 ▼16.08 | 106.62 ▼2.84 |
Media Library /wp-admin/upload.php | 1,901 ▲94 | 5.06 ▲0.02 | 150.49 ▲7.85 | 136.71 ▲17.80 |
Book Categories /wp-admin/edit-tags.php?taxonomy=book-category&post_type=book | 1,829 | 2.56 | 66.77 | 90.08 |
All Books /wp-admin/edit.php?post_type=book | 1,549 | 2.66 | 63.37 | 87.00 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,317 | 2.10 | 57.27 | 82.03 |
Add New /wp-admin/post-new.php?post_type=book | 3,628 | 9.15 | 226.10 | 167.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-books/lib/class-tgm-plugin-activation.php:1910
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-books/lib/class-tgm-plugin-activation.php:1910
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
2 plugin tags: books, schemaorg
demomentsomtres-books/demomentsomtres-books.php Passed 13 tests
The main PHP file in "DeMomentSomTres Books" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
Books management for authors, illustrators and publishers.
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
No dangerous file extensions were detected2,504 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 493 | 1,502 | 2,006 |
PO File | 2 | 157 | 167 | 448 |
Markdown | 1 | 21 | 0 | 33 |
XML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 39.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 5 | 4.46% |
▷ Public methods | 92 | 82.14% |
▷ Protected methods | 20 | 17.86% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin