72% ibuildapp

Code Review | iBuildApp

WordPress plugin iBuildApp scored72%from 54 tests.

About plugin

  • Plugin page: ibuildapp
  • Plugin version: 0.2.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2014
  • Latest release: May 14, 2019
  • Number of updates: 17
  • Update frequency: every 114.5 days
  • Top authors: iBuildApp (58.82%)msyuha (35.29%)Yakovlev Maxim (17.65%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /42,806 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.10MB] [CPU: ▼14.66ms] Passed 4 tests

An overview of server-side resources used by iBuildApp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0435.40 ▼26.61
Dashboard /wp-admin3.33 ▲0.0347.10 ▼1.94
Posts /wp-admin/edit.php3.44 ▼0.4048.98 ▼5.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.30 ▼24.88
Media Library /wp-admin/upload.php3.25 ▲0.0241.35 ▲8.43
Settings /wp-admin/admin.php?page=ibuildapp-conf3.2040.87
/wp-admin/admin.php?page=ibuildapp-iframe-redirect3.1930.27
Home /wp-admin/admin.php?page=ibuildapp3.2029.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
ibuildapp_version
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
ibuildapp_jsonp_tokens

Browser metrics Passed 4 tests

Checking browser requirements for iBuildApp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.19 ▼1.391.65 ▼0.3540.82 ▼3.87
Dashboard /wp-admin2,240 ▲554.84 ▼0.06106.50 ▼9.3542.73 ▼2.55
Posts /wp-admin/edit.php2,116 ▲272.03 ▼0.0038.45 ▲3.1634.67 ▲1.60
Add New Post /wp-admin/post-new.php1,564 ▲3618.15 ▼0.15647.80 ▲34.6756.18 ▼9.73
Media Library /wp-admin/upload.php1,415 ▲304.13 ▼0.05100.46 ▼4.5046.40 ▲3.52
Settings /wp-admin/admin.php?page=ibuildapp-conf9771.9226.2026.37
/wp-admin/admin.php?page=ibuildapp-iframe-redirect1,6122.5630.0329.34
Home /wp-admin/admin.php?page=ibuildapp9771.9224.9825.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • ibuildapp_jsonp_tokens
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • ibuildapp_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ibuildapp
    • > Deprecated in wp-content/plugins/ibuildapp/admin_conf.php+174
    Non-static method Ibuildapp::getOption() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ibuildapp
    • > Notice in wp-content/plugins/ibuildapp/classes/Ibuildapp.class.php+68
    Undefined index: HTTPS

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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ibuildapp/ibuildapp.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibuildapp/admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibuildapp/admin_app.php:121
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibuildapp/admin_jsonp.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibuildapp/admin_conf.php:270

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 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Customize your mobile app, manage content and monetize), #2 (Add sharing and commenting features), #3 (Keep your customers engaged with app updates, promotions and more), #4 (Allow your customers browse, view and share photos, audio and video), #5 (Dashboard), #6 (Manage panel)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

ibuildapp/ibuildapp.php Passed 13 tests

The main PHP file in "iBuildApp" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
125 characters long description:
Create Android and iPhone, iPad App for free and no Coding Required. iBuildApp tool has been used to create over 400 000 apps

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
Success! There were no dangerous files found in this plugin1,667 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP82851951,453
PO File14651133
JavaScript1102152
CSS15529

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.33
▷ Minimum class complexity6.00
▷ Maximum class complexity29.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods51
▷ Static methods3262.75%
▷ Public methods4690.20%
▷ Protected methods59.80%
▷ Private methods00.00%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants527.78%
▷ Class constants1372.22%
▷ Public constants13100.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
4 PNG files occupy 0.31MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png160.77KB52.78KB▼ 67.17%
screenshot-5.png156.97KB54.66KB▼ 65.18%
images/arrow.png1.23KB0.44KB▼ 64.49%
images/icon-link.png1.54KB0.86KB▼ 43.92%