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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.08ms] Passed 4 tests
This is a short check of server-side resources used by Smoothbook
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.44 ▼2.24 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.73 ▼1.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.17 ▲3.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.36 ▼13.65 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.19 ▼3.37 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Smoothbook
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲118 | 14.77 ▲0.49 | 1.96 ▼0.06 | 42.53 ▼3.60 |
Dashboard /wp-admin | 2,226 ▲35 | 5.88 ▼0.15 | 109.27 ▼11.12 | 39.64 ▼4.52 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.03 ▲0.04 | 46.60 ▲6.34 | 45.70 ▲8.19 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 17.71 ▼5.58 | 695.59 ▼6.92 | 58.84 ▼8.85 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.22 ▲0.06 | 112.47 ▼34.36 | 47.67 ▼8.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Requires php: Invalid plugin version format
smoothbook/smoothbook.php 77% from 13 tests
The principal PHP file in "Smoothbook" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/smoothbook")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("smoothbook")
- Description: The description should be shorter than 140 characters (currently 261 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,895 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 3 | 32 | 18 | 154 |
CSS | 3 | 6 | 3 | 37 |
JavaScript | 2 | 6 | 10 | 33 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 8 | 50.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/book-now-button.png | 2.99KB | 1.47KB | ▼ 50.75% |