94% wp-app-enabler

Code Review | WP App Enabler

WordPress plugin WP App Enabler scored 94% from 54 tests.

About plugin

  • Plugin page: wp-app-enabler
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.0
  • WordPress version: 5.8.1
  • First release: Feb 2, 2014
  • Latest release: Sep 13, 2014
  • Number of updates: 10
  • Update frequency: every 22.4 days
  • Top authors: mrpaplu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,821 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼139.24ms] Passed 4 tests

A check of server-side resources used by WP App Enabler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0142.30 ▲8.11
Dashboard /wp-admin3.06 ▲0.0146.73 ▲3.29
Posts /wp-admin/edit.php3.12 ▲0.0144.45 ▲7.14
Add New Post /wp-admin/post-new.php5.42 ▼0.0186.99 ▼569.57
Media Library /wp-admin/upload.php3.01 ▲0.0134.69 ▲2.17

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP App Enabler
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11416.15 ▲0.5710.62 ▲2.1249.84 ▼4.46
Dashboard /wp-admin2,971 ▲375.93 ▼0.10136.05 ▼30.12112.56 ▲4.44
Posts /wp-admin/edit.php2,743 ▲42.72 ▲0.0063.25 ▼3.6688.35 ▼1.99
Add New Post /wp-admin/post-new.php1,687 ▲18717.98 ▼0.87367.50 ▼14.21106.69 ▼21.29
Media Library /wp-admin/upload.php1,810 ▼05.04 ▼0.01153.31 ▼1.19111.29 ▼4.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-app-enabler/bootstrap.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: ios, native app, web app, android, app...

wp-app-enabler/bootstrap.php 92% from 13 tests

The main PHP script in "WP App Enabler" version 0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-app-enabler.php" instead of "bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161723

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin