58% azurecurve-floating-featured-image

Code Review | azurecurve Floating Featured Image

WordPress plugin azurecurve Floating Featured Image scored 58% from 54 tests.

About plugin

  • Plugin page: azurecurve-floati...
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.9
  • WordPress version: 5.8.1
  • First release: Jul 1, 2014
  • Latest release: Jul 27, 2018
  • Number of updates: 20
  • Update frequency: every 74.4 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,279 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.2134.07 ▲10.95
Dashboard /wp-admin2.82 ▼0.2424.32 ▼16.43
Posts /wp-admin/edit.php2.82 ▼0.2923.07 ▼19.81
Add New Post /wp-admin/post-new.php2.82 ▼2.6125.21 ▼620.24
Media Library /wp-admin/upload.php2.82 ▼0.1819.82 ▼16.43
Floating Featured Image /wp-admin/admin.php?page=azc-ffi-config-page2.8222.79
Images /wp-admin/admin.php?page=azc-ffi-show-images2.8218.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,714 ▲7715.95 ▲0.338.87 ▼0.4645.83 ▼1.77
Dashboard /wp-admin2,993 ▲595.94 ▲0.03138.73 ▼4.27133.28 ▲25.74
Posts /wp-admin/edit.php2,787 ▲482.70 ▼0.0267.02 ▲4.6692.34 ▲0.78
Add New Post /wp-admin/post-new.php1,694 ▼1,88318.75 ▲3.94372.74 ▼61.10113.28 ▲9.72
Media Library /wp-admin/upload.php1,781 ▼295.02 ▼0.02124.60 ▼28.38144.23 ▲28.68
Floating Featured Image /wp-admin/admin.php?page=azc-ffi-config-page1,2322.2254.8475.96
Images /wp-admin/admin.php?page=azc-ffi-show-images1,2622.2253.7772.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP210673537
PO File1232497
CSS1026

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 code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/default.png0.49KB0.12KB▼ 75.40%
images/Favicon-16x16.png0.52KB0.60KB0.00%
images/delete.png0.64KB0.72KB0.00%
images/Favicon-32x32.png1.06KB1.33KB0.00%
images/icon-128x128.png5.72KB3.27KB▼ 42.86%