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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.37ms] Passed 4 tests
An overview of server-side resources used by Ahime Image Printer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 39.90 ▼4.90 |
Dashboard /wp-admin | 3.40 ▲0.10 | 40.25 ▼9.10 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 40.88 ▼8.21 |
Add New Post /wp-admin/post-new.php | 5.65 ▼0.24 | 80.16 ▼15.28 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.34 ▼3.96 |
Server storage [IO: ▲4.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 1,693 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Ahime Image Printer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲193 | 13.99 ▼0.43 | 7.34 ▲5.58 | 37.18 ▼11.16 |
Dashboard /wp-admin | 2,238 ▲50 | 5.86 ▲0.97 | 102.95 ▼17.15 | 46.51 ▲2.40 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.15 ▲0.16 | 38.22 ▼0.38 | 34.97 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.24 ▼0.07 | 678.26 ▲56.90 | 60.92 ▲11.06 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.21 ▲0.03 | 101.69 ▼21.83 | 44.57 ▼7.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ahime-image-printer/public/partials/ahime-image-printer-public-display.php
- > /wp-content/plugins/ahime-image-printer/admin/partials/ahime-image-printer-admin-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/ahime-image-printer/public/partials/printing-shortcode.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (The front end view ahime-image-capture-1.png), #2 (This is the third screen shot ahime-image-capture-3.png)
ahime-image-printer/ahime-image-printer.php Passed 13 tests
The main PHP file in "Ahime Image Printer" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
A simple tool to resize and print images
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin25,124 lines of code in 1,674 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 9,494 |
CSS | 7 | 192 | 50 | 6,489 |
SVG | 1,635 | 0 | 0 | 3,296 |
JavaScript | 10 | 521 | 225 | 3,202 |
HTML | 1 | 5 | 0 | 1,373 |
PHP | 15 | 389 | 763 | 1,151 |
Markdown | 1 | 47 | 0 | 116 |
YAML | 1 | 1 | 0 | 3 |
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.25 |
Average class complexity | 13.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 3 | 5.66% |
▷ Public methods | 44 | 83.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 16.98% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/resize_ahime.png | 0.68KB | 0.77KB | 0.00% |