10% iwphone

Code Review | iWPhone

WordPress plugin iWPhone scored10%from 54 tests.

About plugin

  • Plugin page: iwphone
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2013
  • Latest release: Oct 25, 2013
  • Number of updates: 21
  • Update frequency: every 89.2 days
  • Top authors: ContentRobot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,725 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/iwphone/iwphone.php+36
    Methods with the same name as their class will not be constructors in a future version of PHP; iWPhonePlugin has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼56.53ms] Passed 4 tests

A check of server-side resources used by iWPhone
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.14 ▼35.52
Dashboard /wp-admin2.08 ▼1.234.93 ▼42.78
Posts /wp-admin/edit.php2.08 ▼1.286.23 ▼61.00
Add New Post /wp-admin/post-new.php2.08 ▼3.815.63 ▼86.83
Media Library /wp-admin/upload.php2.08 ▼1.155.56 ▼28.54

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for iWPhone
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.74 ▲0.361.84 ▼0.0443.34 ▼3.70
Dashboard /wp-admin2,206 ▲275.01 ▼0.84103.04 ▼14.8241.37 ▼7.17
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0637.53 ▼9.4732.95 ▼10.79
Add New Post /wp-admin/post-new.php1,538 ▲1022.73 ▲4.59672.26 ▲56.7863.51 ▲17.97
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.10127.09 ▲17.6648.97 ▲4.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/iwphone/iwphone.php+36
    Methods with the same name as their class will not be constructors in a future version of PHP; iWPhonePlugin has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/iwphone/iwphone-by-contentrobot/comments.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/iwphone/iwphone-by-contentrobot/functions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/404.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/archive.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/single.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/iwphone/iwphone-by-contentrobot/footer.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_theme_supports() in wp-content/plugins/iwphone/iwphone.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/iwphone/iwphone-by-contentrobot/header.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/index.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/page.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please a description for screenshot #3 in iwphone/assets to your readme.txt
  • Plugin Name: You should set the name of your plugin on the first line ( === iwphone === )
The official readme.txt is a good inspiration

iwphone/iwphone.php 92% from 13 tests

The principal PHP file in "iWPhone" v. 0.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 315 characters long)

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
Good job! No executable or dangerous file extensions detected529 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP104434378
CSS11338151

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
iwphone-by-contentrobot/images/header-bg.png0.21KB0.13KB▼ 39.27%
iwphone-by-contentrobot/screenshot.png80.98KB33.37KB▼ 58.80%
iwphone-by-contentrobot/images/gloss.png0.20KB0.44KB0.00%