Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼280.30ms] Passed 4 tests
Server-side resources used by Pojo Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 35.34 ▲13.33 |
Dashboard /wp-admin | 3.10 ▲0.04 | 39.92 ▼5.36 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 45.80 ▲10.57 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 85.21 ▼1,115.47 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 30.87 ▼10.93 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pojo Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,682 ▲76 | 15.94 ▲0.47 | 9.18 ▲1.56 | 46.17 ▼1.60 |
Dashboard /wp-admin | 2,942 ▲89 | 5.97 ▲0.08 | 141.69 ▲6.91 | 112.29 ▲9.99 |
Posts /wp-admin/edit.php | 2,713 ▲7 | 2.69 ▼0.01 | 72.77 ▲7.86 | 101.55 ▲6.49 |
Add New Post /wp-admin/post-new.php | 1,662 ▲74 | 18.47 ▼2.51 | 378.21 ▲57.03 | 112.32 ▼4.35 |
Media Library /wp-admin/upload.php | 1,778 ▲6 | 5.01 ▲0.01 | 148.62 ▼42.62 | 126.93 ▼9.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Forms admin page), #2 (Form builder), #3 (Form style options)
pojo-forms/pojo-forms.php Passed 13 tests
Analyzing the main PHP file in "Pojo Forms" version 1.4.7
88 characters long description:
Pojo Forms allows you to create any form you want with a simple drag and drop interface.
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 detected1,917 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 403 | 122 | 1,717 |
JavaScript | 4 | 54 | 17 | 200 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 58 | |
▷ Static methods | 4 | 6.90% |
▷ Public methods | 53 | 91.38% |
▷ Protected methods | 3 | 5.17% |
▷ Private methods | 2 | 3.45% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.52MB with 0.34MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 175.80KB | 61.73KB | ▼ 64.89% |
screenshot-3.png | 180.11KB | 62.63KB | ▼ 65.22% |
screenshot-1.png | 174.44KB | 61.24KB | ▼ 64.89% |