78% twicpics

Code Review | Real Time Responsive Images Plugin for WordPress by TwicPics

WordPress plugin Real Time Responsive Images Plugin for WordPress by TwicPics scored78%from 54 tests.

About plugin

  • Plugin page: twicpics
  • Plugin version: 0.2.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2021
  • Latest release: Apr 20, 2023
  • Number of updates: 17
  • Update frequency: every 48.1 days
  • Top authors: twicpics (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.12ms] Passed 4 tests

An overview of server-side resources used by Real Time Responsive Images Plugin for WordPress by TwicPics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.10 ▼4.03
Dashboard /wp-admin3.38 ▲0.0744.12 ▼3.38
Posts /wp-admin/edit.php3.50 ▲0.1345.19 ▼0.77
Add New Post /wp-admin/post-new.php5.96 ▲0.0779.85 ▼12.31
Media Library /wp-admin/upload.php3.30 ▲0.0735.40 ▲1.37
TwicPics /wp-admin/upload.php?page=twicpics3.2729.42

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Real Time Responsive Images Plugin for WordPress by TwicPics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.23 ▼1.151.81 ▲0.0839.43 ▼1.95
Dashboard /wp-admin2,223 ▲355.77 ▼0.11105.49 ▼3.5039.59 ▼2.71
Posts /wp-admin/edit.php2,109 ▲202.00 ▼0.0039.43 ▲0.8235.35 ▼2.58
Add New Post /wp-admin/post-new.php1,549 ▲623.12 ▲4.89632.86 ▲4.6261.66 ▲0.80
Media Library /wp-admin/upload.php1,411 ▲204.31 ▼0.1099.42 ▼6.3843.47 ▲1.04
TwicPics /wp-admin/upload.php?page=twicpics1,0482.0622.8629.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/upload.php?page=twicpics
    • > Notice in wp-content/plugins/twicpics/class-twicpics-admin.php+62
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/twicpics/class-twicpics-api.php
    • > /wp-content/plugins/twicpics/assets/logo.svg.php
    • > /wp-content/plugins/twicpics/twicpics.php
    • > /wp-content/plugins/twicpics/class-twicpics.php
    • > /wp-content/plugins/twicpics/class-twicpics-script.php
    • > /wp-content/plugins/twicpics/class-twicpics-admin.php
    • > /wp-content/plugins/twicpics/class-twicpics-urls-manager.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

twicpics/twicpics.php Passed 13 tests

Analyzing the main PHP file in "Real Time Responsive Images Plugin for WordPress by TwicPics" version 0.2.4
41 characters long description:
Delivers pixel perfect images on the fly.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,568 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP93014481,469
PO File1262699

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity61.00
▷ Minimum class complexity11.00
▷ Maximum class complexity104.00
Average method complexity7.12
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods2653.06%
▷ Protected methods00.00%
▷ Private methods2346.94%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin