Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼168.23ms] Passed 4 tests
Analyzing server-side resources used by azurecurve Floating Featured Image
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.21 | 34.07 ▲10.95 |
Dashboard /wp-admin | 2.82 ▼0.24 | 24.32 ▼16.43 |
Posts /wp-admin/edit.php | 2.82 ▼0.29 | 23.07 ▼19.81 |
Add New Post /wp-admin/post-new.php | 2.82 ▼2.61 | 25.21 ▼620.24 |
Media Library /wp-admin/upload.php | 2.82 ▼0.18 | 19.82 ▼16.43 |
Floating Featured Image /wp-admin/admin.php?page=azc-ffi-config-page | 2.82 | 22.79 |
Images /wp-admin/admin.php?page=azc-ffi-show-images | 2.82 | 18.78 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_azc_ffi_images |
New WordPress options |
---|
azc_ffi_db_version |
azc_ffi_options |
Browser metrics Passed 4 tests
Checking browser requirements for azurecurve Floating Featured Image
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,714 ▲77 | 15.95 ▲0.33 | 8.87 ▼0.46 | 45.83 ▼1.77 |
Dashboard /wp-admin | 2,993 ▲59 | 5.94 ▲0.03 | 138.73 ▼4.27 | 133.28 ▲25.74 |
Posts /wp-admin/edit.php | 2,787 ▲48 | 2.70 ▼0.02 | 67.02 ▲4.66 | 92.34 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,694 ▼1,883 | 18.75 ▲3.94 | 372.74 ▼61.10 | 113.28 ▲9.72 |
Media Library /wp-admin/upload.php | 1,781 ▼29 | 5.02 ▼0.02 | 124.60 ▼28.38 | 144.23 ▲28.68 |
Floating Featured Image /wp-admin/admin.php?page=azc-ffi-config-page | 1,232 | 2.22 | 54.84 | 75.96 |
Images /wp-admin/admin.php?page=azc-ffi-show-images | 1,262 | 2.22 | 53.77 | 72.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie tables detected upon uninstall: 1 table
- wp_azc_ffi_images
- The uninstall procedure has failed, leaving 1 option in the database
- azc_ffi_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=azc-ffi-show-images
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/azurecurve-floating-featured-image/azurecurve-floating-featured-image.php:59
- > 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 96% 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
3 plugin tags: featured image, post, posts
azurecurve-floating-featured-image/azurecurve-floating-featured-image.php 92% from 13 tests
The main PHP script in "azurecurve Floating Featured Image" version 2.2.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin640 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 106 | 73 | 537 |
PO File | 1 | 23 | 24 | 97 |
CSS | 1 | 0 | 2 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 15 | |
▷ Named functions | 15 | 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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/default.png | 0.49KB | 0.12KB | ▼ 75.40% |
images/Favicon-16x16.png | 0.52KB | 0.60KB | 0.00% |
images/delete.png | 0.64KB | 0.72KB | 0.00% |
images/Favicon-32x32.png | 1.06KB | 1.33KB | 0.00% |
images/icon-128x128.png | 5.72KB | 3.27KB | ▼ 42.86% |