62% wpapptouch

Code Review | WPapptouch

WordPress plugin WPapptouch scored 62% from 54 tests.

About plugin

  • Plugin page: wpapptouch
  • Plugin version: 0.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.0.0
  • WordPress version: 6.3.1
  • First release: Jun 11, 2012
  • Latest release: Jan 23, 2015
  • Number of updates: 98
  • Update frequency: every 9.8 days
  • Top authors: onigetoc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 30,286 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.96MB] [CPU: ▼48.59ms] Passed 4 tests

A check of server-side resources used by WPapptouch
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.60 ▼37.06
Dashboard /wp-admin2.05 ▼1.267.27 ▼39.95
Posts /wp-admin/edit.php2.05 ▼1.316.64 ▼36.56
Add New Post /wp-admin/post-new.php2.05 ▼3.846.75 ▼80.78
Media Library /wp-admin/upload.php2.05 ▼1.186.70 ▼26.47
WP-Apptouch Theme Config /wp-admin/plugins.php?page=wp_apptouch2.057.34

Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 3 files (99.59KB) outside of "wp-content/plugins/wpapptouch/" and "wp-content/uploads/"
    • (new file) wp-content/themes/wp_apptouch/style.css
    • (new file) wp-content/themes/wp_apptouch/index.php
    • (new file) wp-content/themes/wp_apptouch/screenshot-1.jpg
Filesystem: 35 new files
Database: no new tables, 9 new options
New WordPress options
wapt_user_agents
can_compress_scripts
wapt_current_version
widget_recent-posts
db_upgraded
mpsd_current_version
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPapptouch
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.101.66 ▼0.3542.04 ▼1.02
Dashboard /wp-admin2,210 ▲224.84 ▼0.1999.80 ▼15.0138.28 ▼5.56
Posts /wp-admin/edit.php2,093 ▲252.03 ▲0.0139.57 ▲6.3133.66 ▲0.12
Add New Post /wp-admin/post-new.php1,545 ▲318.47 ▲0.10595.27 ▼9.8664.02 ▲7.91
Media Library /wp-admin/upload.php1,395 ▲44.41 ▲0.2495.12 ▼8.6842.53 ▼0.64
WP-Apptouch Theme Config /wp-admin/plugins.php?page=wp_apptouch8352.0324.3426.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_themes is deprecated since version 3.4.0! Use wp_get_themes() instead.
  • Zombie WordPress options were found after uninstall: 9 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • mpsd_current_version
    • widget_theysaidso_widget
    • wapt_user_agents
    • wapt_current_version
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 83 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=wp_apptouch
    • > User deprecated in wp-includes/functions.php+5453
    Function get_themes is deprecated since version 3.4.0! Use wp_get_themes() instead.

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
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/wpapptouch/get_category.php
    • > /wp-content/plugins/wpapptouch/get_post.php
    • > /wp-content/plugins/wpapptouch/get_single.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpapptouch/wp_apptouch.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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:
  • Screenshots: These screenshots do not have images: #1 (WPapptouch - Home page, Post and Search page.), #2 (WPapptouch - Categories.), #3 (WPapptouch - Single, Page.), #4 (WPapptouch - iPhone Native app look and feel.)
The official readme.txt might help

wpapptouch/wp_apptouch.php 92% from 13 tests

The entry point to "WPapptouch" version 0.8.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpapptouch.php" instead of "wp_apptouch.php")

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
There were no executable files found in this plugin1,518 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
HTML117616586
PHP511982394
CSS56188282
JavaScript94720256

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/UIBackPressed.png0.91KB1.06KB0.00%
img/iPhoneIcon_Small.png6.62KB3.28KB▼ 50.43%
img/istartup.png43.02KB40.72KB▼ 5.35%
img/iPhoneIcon_Big.png23.00KB8.43KB▼ 63.34%
img/UIBack.png0.92KB1.06KB0.00%