Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.09ms] Passed 4 tests
This is a short check of server-side resources used by 7K Image Uploader Meta Box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.57 ▲12.02 |
Dashboard /wp-admin | 3.08 ▲0.02 | 42.90 ▼1.72 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 41.40 ▼0.33 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 86.56 ▼559.80 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 31.94 ▲1.51 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by 7K Image Uploader Meta Box
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,692 ▲96 | 15.92 ▼0.22 | 8.43 ▼2.28 | 45.79 ▼5.37 |
Dashboard /wp-admin | 2,970 ▲36 | 5.93 ▼0.23 | 151.82 ▲12.84 | 111.00 ▼5.59 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.74 ▲0.03 | 61.36 ▼0.43 | 95.18 ▲8.17 |
Add New Post /wp-admin/post-new.php | 1,677 ▲177 | 21.85 ▲3.12 | 273.65 ▼103.82 | 113.17 ▼2.86 |
Media Library /wp-admin/upload.php | 1,813 ▲6 | 5.03 ▲0.04 | 138.79 ▼18.74 | 117.07 ▼1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/7k-image-uploader-meta-box/7k-image-uploader-meta-box.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Uploader field), #2 (WordPress media uploader), #3 (Image uploaded), #4 (Image selected)
7k-image-uploader-meta-box/7k-image-uploader-meta-box.php Passed 13 tests
"7K Image Uploader Meta Box" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Simple WordPress plugin adds image uploader meta box.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin159 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 15 | 159 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 2.44KB | 1.69KB | ▼ 30.80% |
screenshot-3.png | 124.18KB | 34.42KB | ▼ 72.28% |
screenshot-2.png | 12.31KB | 6.90KB | ▼ 43.95% |
screenshot-4.png | 38.10KB | 15.52KB | ▼ 59.25% |