Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.60ms] Passed 4 tests
Analyzing server-side resources used by Nic-app Crono
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.24 ▼2.28 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.88 ▼1.59 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 50.34 ▼13.03 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 87.52 ▼14.68 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 37.48 ▼8.39 |
Nic-app Crono /wp-admin/admin.php?page=nicappcrono | 3.30 | 31.81 |
Calendars /wp-admin/edit.php?post_type=nicappcronocalendars | 3.34 | 36.70 |
Support /wp-admin/admin.php?page=nicappcrono-support | 3.29 | 32.11 |
Settings /wp-admin/admin.php?page=nicappcrono-settings | 3.29 | 33.46 |
Scheduling /wp-admin/admin.php?page=nicappcrono-scheduling | 3.29 | 32.28 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Nic-app Crono
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲189 | 13.57 ▼0.82 | 7.68 ▲5.34 | 41.13 ▼8.25 |
Dashboard /wp-admin | 2,247 ▲59 | 4.88 ▼1.03 | 96.52 ▼6.24 | 79.76 ▲38.99 |
Posts /wp-admin/edit.php | 2,133 ▲41 | 2.01 ▼0.04 | 38.28 ▼2.11 | 37.18 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,560 ▲23 | 18.13 ▼0.32 | 675.44 ▲46.08 | 55.61 ▲5.94 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.13 ▼0.09 | 103.69 ▲0.54 | 46.38 ▲5.37 |
Nic-app Crono /wp-admin/admin.php?page=nicappcrono | 847 | 2.05 | 24.38 | 27.76 |
Calendars /wp-admin/edit.php?post_type=nicappcronocalendars | 1,117 | 1.94 | 32.63 | 30.48 |
Support /wp-admin/admin.php?page=nicappcrono-support | 822 | 2.05 | 24.63 | 26.05 |
Settings /wp-admin/admin.php?page=nicappcrono-settings | 884 | 2.21 | 26.43 | 26.63 |
Scheduling /wp-admin/admin.php?page=nicappcrono-scheduling | 833 | 2.06 | 24.94 | 25.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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 fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/nic-app-crono/public/partials/nicappcrono-public-display.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nic-app-crono/admin/partials/nicappcrono-admin-support-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nic-app-crono/admin/partials/nicappcrono-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nic-app-crono/admin/partials/nicappcrono-admin-settings-display.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Cronofy\\Http\\HttpRequest' not found in wp-content/plugins/nic-app-crono/Cronofy/Http/CurlRequest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nic-app-crono/admin/partials/nicappcrono-admin-scheduling-display.php:17
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== nic-app-crono ===
)
nic-app-crono/nicappcrono.php 77% from 13 tests
The primary PHP file in "Nic-app Crono" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nic-app-crono.php" instead of "nicappcrono.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,341 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 303 | 1,298 | 2,092 |
PO File | 1 | 77 | 95 | 235 |
CSS | 2 | 0 | 8 | 8 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 16.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 129 | |
▷ Static methods | 2 | 1.55% |
▷ Public methods | 94 | 72.87% |
▷ Protected methods | 1 | 0.78% |
▷ Private methods | 34 | 26.36% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/NIC-APP-03-350x233.png | 42.81KB | 16.49KB | ▼ 61.48% |
admin/img/nic-app-logo.png | 7.16KB | 0.88KB | ▼ 87.78% |