10% wp-mobily

Code Review | WP-Mobily

WordPress plugin WP-Mobily scored10%from 54 tests.

About plugin

  • Plugin page: wp-mobily
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Jan 19, 2021
  • Number of updates: 27
  • Update frequency: every 100.5 days
  • Top authors: KeyvaHardani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,456 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
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-mobily/wp-mobily-inc.php+6
    Undefined index: hidemsg

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.18ms] Passed 4 tests

Server-side resources used by WP-Mobily
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.32 ▼39.11
Dashboard /wp-admin2.09 ▼1.216.54 ▼39.94
Posts /wp-admin/edit.php2.09 ▼1.277.35 ▼44.76
Add New Post /wp-admin/post-new.php2.09 ▼3.806.38 ▼92.92
Media Library /wp-admin/upload.php2.09 ▼1.146.80 ▼32.39
WP-Mobily /wp-admin/options-general.php?page=wp-mobily/wp-mobily-inc.php2.095.96

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

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

Browser metrics Passed 4 tests

WP-Mobily: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4714.45 ▲0.041.67 ▼0.4639.93 ▼5.24
Dashboard /wp-admin2,224 ▲334.89 ▼0.98105.94 ▼2.2441.81 ▼5.26
Posts /wp-admin/edit.php2,106 ▲202.01 ▼0.0341.26 ▲2.8737.49 ▲2.69
Add New Post /wp-admin/post-new.php1,545 ▲2623.33 ▼0.01664.59 ▲14.0457.01 ▲5.86
Media Library /wp-admin/upload.php1,406 ▲154.32 ▲0.08104.96 ▲0.5450.23 ▲4.25
WP-Mobily /wp-admin/options-general.php?page=wp-mobily/wp-mobily-inc.php1,0732.1527.9656.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wp-mobily/wp-mobily-inc.php+6
    Undefined index: hidemsg
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-mobily/wp-mobily-inc.php
    • > Notice in wp-content/plugins/wp-mobily/wp-mobily-inc.php+6
    Undefined index: hidemsg
    • > GET request to /wp-admin/options-general.php?page=wp-mobily/wp-mobily-inc.php
    • > User deprecated in wp-includes/functions.php+5453
    Function get_themes is deprecated since version 3.4.0! Use wp_get_themes() instead.
    • > GET request to /wp-admin/options-general.php?page=wp-mobily/wp-mobily-inc.php
    • > User deprecated in wp-includes/functions.php+5453
    Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mobily/wp-mobily.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-mobily/wp-mobily-admin/wp-mobily-top.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mobily/wp-mobily/wp-mobily.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wp-mobily/wp-mobily/wp-mobily-plug.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mobily/wp-mobily-inc.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (WP-Mobily Admin Panel) image missing
You can look at the official readme.txt

wp-mobily/wp-mobily.php Passed 13 tests

This is the main PHP file of "WP-Mobily" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
51 characters long description:
Select your Mobile-Theme, only for Mobile Device's.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin329 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53913327
HTML1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions9
▷ Named functions9100.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
There are no PNG files in this plugin