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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.74ms] Passed 4 tests
An overview of server-side resources used by Cover3D
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.75 ▼2.29 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.41 ▼2.45 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 48.18 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.25 ▼14.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.45 ▲0.01 |
Server storage [IO: ▲0.15MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Cover3D
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.57 ▼0.04 | 1.60 ▼0.08 | 38.59 ▼3.96 |
Dashboard /wp-admin | 2,192 ▲17 | 5.53 ▼0.12 | 82.93 ▼21.78 | 41.05 ▼0.87 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 39.66 ▲0.87 | 37.24 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,545 ▲6 | 23.21 ▲0.04 | 653.13 ▲45.86 | 36.38 ▼22.05 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▼0.06 | 96.33 ▼1.88 | 40.73 ▼3.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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: Class 'PG_Blocks' not found in wp-content/plugins/cover3d/blocks/book/book_register.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_unique_id() in wp-content/plugins/cover3d/blocks/book/book.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #4 is required in cover3d/assets to your readme.txt
cover3d/cover3d.php Passed 13 tests
The main file in "Cover3D" v. 0.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
A block that displays a 3D book cover, animated when you mouse over it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,226 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 112 | 12 | 1,020 |
PHP | 5 | 108 | 95 | 664 |
CSS | 3 | 57 | 20 | 376 |
PO File | 1 | 58 | 77 | 125 |
Markdown | 1 | 16 | 0 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 33 | 100.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/cover.png | 2.64KB | 2.64KB | 0.00% |
assets/cover2x.png | 7.92KB | 6.68KB | ▼ 15.73% |