78% mobi-builder

Code Review | Mobi Builder

WordPress plugin Mobi Builder scored78%from 54 tests.

About plugin

  • Plugin page: mobi-builder
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Sep 4, 2020
  • Latest release: Nov 29, 2020
  • Number of updates: 3
  • Update frequency: every 28.7 days
  • Top authors: mobibuilder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /378 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.14ms] Passed 4 tests

An overview of server-side resources used by Mobi Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.40 ▼3.82
Dashboard /wp-admin3.33 ▲0.0345.31 ▼4.39
Posts /wp-admin/edit.php3.38 ▲0.0347.90 ▼8.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.36 ▼11.91
Media Library /wp-admin/upload.php3.25 ▲0.0232.87 ▲0.08
Mobi Builder /wp-admin/options-general.php?page=mobi-builder3.1930.34

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 10 new options
New WordPress options
mobibuildershowborder
mobibuilderbordercolor
mobibuilderopeninnewtab
widget_recent-posts
mobibuilderborderthickness
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Mobi Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.14 ▼1.231.77 ▲0.1643.88 ▲5.52
Dashboard /wp-admin2,207 ▲194.85 ▼1.19110.12 ▼0.5139.52 ▼7.78
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0340.28 ▲4.1134.65 ▲0.70
Add New Post /wp-admin/post-new.php1,545 ▲1718.27 ▲0.06593.49 ▼29.9448.45 ▼0.66
Media Library /wp-admin/upload.php1,392 ▲14.22 ▲0.0494.83 ▼5.2941.60 ▼5.04
Mobi Builder /wp-admin/options-general.php?page=mobi-builder9832.0221.7228.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_theysaidso_widget
    • mobibuilderbordercolor
    • mobibuilderborderthickness
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • mobibuilderopeninnewtab
    • widget_recent-posts
    • mobibuildershowborder
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=mobi-builder
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=mobi-builder
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 1× 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/mobi-builder/mobi-builder.php:150

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (The plugin admin page.), #2 (The embedded project.)
You can take inspiration from this readme.txt

mobi-builder/mobi-builder.php Passed 13 tests

The principal PHP file in "Mobi Builder" v. 1.0 is loaded by WordPress automatically on each request
47 characters long description:
Embed a Mobi Builder project into your website.

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
Success! There were no dangerous files found in this plugin123 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1358123

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions4
▷ Named functions4100.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.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png30.04KB11.33KB▼ 62.28%
assets/screenshot-1.png46.47KB20.87KB▼ 55.09%