78% ios-images-fixer

Code Review | iOS images fixer

WordPress plugin iOS images fixer scored78%from 54 tests.

About plugin

  • Plugin page: ios-images-fixer
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Jul 1, 2014
  • Latest release: Nov 28, 2017
  • Number of updates: 41
  • Update frequency: every 30.4 days
  • Top authors: Bishoy.A (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

9,000+ active /46,486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.82ms] Passed 4 tests

A check of server-side resources used by iOS images fixer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.72 ▼4.15
Dashboard /wp-admin3.35 ▲0.0450.15 ▼1.42
Posts /wp-admin/edit.php3.40 ▲0.0449.53 ▼2.51
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.67 ▼15.18
Media Library /wp-admin/upload.php3.27 ▲0.0439.60 ▲3.53
Fix iOS images /wp-admin/upload.php?page=ios-images-fixer3.2533.37

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for iOS images fixer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.14 ▼0.421.65 ▼0.4739.10 ▼2.32
Dashboard /wp-admin2,202 ▲285.63 ▼0.0393.89 ▲0.9740.28 ▼0.25
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0534.41 ▼5.4836.51 ▼0.93
Add New Post /wp-admin/post-new.php1,542 ▲1623.44 ▼0.15676.54 ▼51.2755.46 ▼1.89
Media Library /wp-admin/upload.php1,404 ▲44.12 ▼0.02110.99 ▼4.8048.21 ▼0.88
Fix iOS images /wp-admin/upload.php?page=ios-images-fixer8182.0841.8427.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ios-images-fixer/ios-fixer-page.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ios-images-fixer/list-media.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ios-images-fixer/list-media.php on line 10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ios-images-fixer/list-media.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ios-images-fixer/image-fixer.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: ios, media, thumbnails, images, iphone...

ios-images-fixer/image-fixer.php 85% from 13 tests

The entry point to "iOS images fixer" version 1.2.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ios-images-fixer.php" instead of "image-fixer.php")
  • Description: The description should be shorter than 140 characters (currently 338 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected385 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP383128370
JavaScript11015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity21.00
▷ Minimum class complexity13.00
▷ Maximum class complexity29.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1041.67%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected