Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
Server metrics [RAM: ▼1.87MB] [CPU: ▼57.09ms] Passed 4 tests
Server-side resources used by phZoom Plugin for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 6.06 ▼33.93 |
Dashboard /wp-admin | 2.14 ▼1.20 | 7.15 ▼61.13 |
Posts /wp-admin/edit.php | 2.14 ▼1.21 | 6.50 ▼45.59 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.74 | 7.11 ▼87.70 |
Media Library /wp-admin/upload.php | 2.14 ▼1.08 | 8.03 ▼28.60 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 20 new options
New WordPress options |
---|
phz_11 |
phz_5 |
db_upgraded |
phz_8 |
phz_12 |
phz_9 |
widget_recent-posts |
phz_7 |
phz_2 |
phz_6 |
... |
Browser metrics Passed 4 tests
phZoom Plugin for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 14.27 ▼0.11 | 2.79 ▲1.10 | 39.97 ▼8.62 |
Dashboard /wp-admin | 2,199 ▲22 | 5.52 ▼0.14 | 86.49 ▼12.36 | 42.99 ▲0.43 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.05 | 34.25 ▼4.19 | 34.49 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 17.54 ▼5.98 | 678.43 ▲21.30 | 53.27 ▲3.24 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.23 ▲0.01 | 96.24 ▼16.01 | 40.85 ▼5.54 |
phZoom Options /wp-admin/phzoom.php | 26 | 0.44 | 0.08 | 15.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- This plugin did not uninstall successfully, leaving 20 options in the database
- widget_recent-comments
- phz_7
- widget_theysaidso_widget
- phz_10
- phz_1
- phz_3
- phz_12
- phz_9
- phz_2
- phz_13
- ...
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 50% 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/phzoom/phzoom.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/phzoom.php
- > Network (severe)
wp-admin/phzoom.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Effect), #2 (Options(if you wordpress is English, English description of this set will be displayed))
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== phzoom ===
)
phzoom/phzoom.php 92% from 13 tests
The main PHP script in "phZoom Plugin for WordPress" version 1.2.92 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 461 characters long)
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
There were no executable files found in this plugin258 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 8 | 158 |
PO File | 1 | 37 | 40 | 88 |
CSS | 1 | 0 | 1 | 11 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
zoom.png | 3.43KB | 0.69KB | ▼ 79.90% |
screenshot-2.png | 20.54KB | 9.96KB | ▼ 51.53% |
screenshot-1.png | 208.55KB | 63.66KB | ▼ 69.47% |