90% wurfl-image-tailor-connector

Code Review | WURFL Image Tailor (WIT)

WordPress plugin WURFL Image Tailor (WIT) scored90%from 54 tests.

About plugin

  • Plugin page: wurfl-image-tailo...
  • Plugin version: 0.9.08
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 13, 2015
  • Latest release: Mar 31, 2016
  • Number of updates: 35
  • Update frequency: every 10.2 days
  • Top authors: nevma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /731 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼10.11ms] Passed 4 tests

An overview of server-side resources used by WURFL Image Tailor (WIT)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.51 ▼1.32
Dashboard /wp-admin3.31 ▼0.0350.35 ▼16.64
Posts /wp-admin/edit.php3.37 ▲0.0147.15 ▼5.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.03 ▼17.05
Media Library /wp-admin/upload.php3.24 ▲0.0036.61 ▼0.68

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WURFL Image Tailor (WIT)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.071.67 ▼0.2443.37 ▲1.68
Dashboard /wp-admin2,198 ▲215.59 ▲0.0197.37 ▼2.4243.79 ▼0.61
Posts /wp-admin/edit.php2,097 ▼62.00 ▲0.0635.15 ▼0.7636.42 ▼1.75
Add New Post /wp-admin/post-new.php1,526 ▼223.44 ▲0.39679.66 ▲47.8453.74 ▼7.27
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.0396.89 ▼8.2044.22 ▼1.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: The official readme.txt might help

wurfl-image-tailor-connector/wurfl-image-tailor-connector.php Passed 13 tests

The principal PHP file in "WURFL Image Tailor (WIT)" v. 0.9.08 is loaded by WordPress automatically on each request
94 characters long description:
Sets up the sources of your images so that they are served via the WURFL Image tailor service.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin22 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2434822

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin