10% qikmo-mobile-website-redirection

Code Review | Qikmo Mobile Website Redirection

WordPress plugin Qikmo Mobile Website Redirection scored10%from 54 tests.

About plugin

  • Plugin page: qikmo-mobile-webs...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Oct 16, 2012
  • Latest release: Jan 9, 2013
  • Number of updates: 7
  • Update frequency: every 12.4 days
  • Top authors: qikmo.plugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,170 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/qikmo-mobile-website-redirection/hd3.php+96
    Methods with the same name as their class will not be constructors in a future version of PHP; HD3 has a deprecated constructor

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.98ms] Passed 4 tests

An overview of server-side resources used by Qikmo Mobile Website Redirection
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.98 ▲0.04
Dashboard /wp-admin3.32 ▲0.0145.70 ▼4.99
Posts /wp-admin/edit.php3.37 ▲0.0143.97 ▼1.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.73 ▼17.80
Media Library /wp-admin/upload.php3.24 ▲0.0136.48 ▲2.10
Qikmo Setup /wp-admin/options-general.php?page=qikmo_setup3.2331.37

Server storage [IO: ▲0.16MB] [DB: ▲0.31MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
qikmo_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Qikmo Mobile Website Redirection
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.25 ▼1.371.59 ▼1.2644.48 ▼6.20
Dashboard /wp-admin2,212 ▲215.83 ▲0.90104.92 ▲4.4839.28 ▲0.61
Posts /wp-admin/edit.php2,095 ▲32.01 ▼0.0436.06 ▲0.2134.37 ▲3.30
Add New Post /wp-admin/post-new.php1,533 ▲1623.32 ▲5.64657.13 ▲70.2860.37 ▲7.02
Media Library /wp-admin/upload.php1,397 ▲154.20 ▼0.0296.33 ▼0.9942.69 ▲1.74
Qikmo Setup /wp-admin/options-general.php?page=qikmo_setup9322.0423.5628.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • qikmo_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/qikmo-mobile-website-redirection/setup.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qikmo-mobile-website-redirection/qikmo-plugin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (This screen shot explains how to setup Qikmo plugin)
The official readme.txt is a good inspiration

qikmo-mobile-website-redirection/qikmo-plugin.php 92% from 13 tests

The main PHP script in "Qikmo Mobile Website Redirection" version 1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qikmo-mobile-website-redirection.php" instead of "qikmo-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected954 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3163121894
JavaScript153160

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity56.67
▷ Minimum class complexity2.00
▷ Maximum class complexity149.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods77
▷ Static methods45.19%
▷ Public methods77100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.35KB11.77KB▼ 62.45%
logo.png87.28KB15.97KB▼ 81.70%