Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.02ms] Passed 4 tests
This is a short check of server-side resources used by NIC Photo Editor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.61 ▼6.33 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.35 ▼5.27 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.45 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.70 ▼7.17 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.51 ▲3.33 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NIC Photo Editor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.12 ▼0.17 | 1.59 ▼0.39 | 37.20 ▼5.45 |
Dashboard /wp-admin | 2,225 ▲37 | 5.92 ▲0.04 | 120.18 ▲4.56 | 83.83 ▲38.72 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.67 ▲0.67 | 41.79 ▲2.06 | 35.56 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,684 ▲170 | 22.76 ▲5.11 | 668.17 ▼20.44 | 62.62 ▼1.98 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 5.10 ▲0.89 | 106.75 ▼5.24 | 77.04 ▲32.99 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/nic-photo-editor/add_image_frame.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/nic-photo-editor/add_image_frame.php:347
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nic-photo-editor/canvas_image_frame.php:207
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: indianic canvas image, indianic image maker, indianic merge images, indianic photo editor
nic-photo-editor/canvas_image_frame.php 85% from 13 tests
This is the main PHP file of "NIC Photo Editor" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 326 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nic-photo-editor.php" instead of "canvas_image_frame.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin10,877 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 2,469 | 5,150 | 10,310 |
PHP | 2 | 150 | 43 | 452 |
CSS | 1 | 14 | 0 | 99 |
INI | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
10 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/upload_photo.png | 5.03KB | 2.55KB | ▼ 49.27% |
images/picture_delete.png | 0.63KB | 0.77KB | 0.00% |
js/hv.png | 2.80KB | 7.32KB | 0.00% |
images/view_image.png | 0.53KB | 0.67KB | 0.00% |
images/shape_move_back.png | 0.40KB | 0.33KB | ▼ 19.08% |