10% joemobi

Code Review | JoeMobi - Create your own Native Mobile App

WordPress plugin JoeMobi - Create your own Native Mobile App scored10%from 54 tests.

About plugin

  • Plugin page: joemobi
  • Plugin version: 2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-3.3
  • WordPress version: 6.3.1
  • First release: Aug 16, 2011
  • Latest release: Feb 27, 2012
  • Number of updates: 89
  • Update frequency: every 2.3 days
  • Top authors: SpeakFeel (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /22,051 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/joemobi/models/attachment.php+24
    Methods with the same name as their class will not be constructors in a future version of PHP; JOEMOBI_API_Attachment has a deprecated constructor

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

This is a short check of server-side resources used by JoeMobi - Create your own Native Mobile App
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.12 ▼6.46
Dashboard /wp-admin3.33 ▲0.0243.21 ▼4.86
Posts /wp-admin/edit.php3.38 ▲0.0245.63 ▼3.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.29 ▼9.70
Media Library /wp-admin/upload.php3.25 ▲0.0233.30 ▼0.85
JoeMobi /wp-admin/options-general.php?page=joemobi-api3.2130.73

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for JoeMobi - Create your own Native Mobile App
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3413.16 ▼1.514.90 ▲2.8844.66 ▲0.92
Dashboard /wp-admin2,210 ▲314.83 ▼1.04106.60 ▲5.5239.57 ▲0.91
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0433.82 ▼6.5932.66 ▼3.60
Add New Post /wp-admin/post-new.php1,526 ▲723.31 ▼0.09683.81 ▲48.0564.20 ▲2.29
Media Library /wp-admin/upload.php1,386 ▲14.19 ▼0.0194.59 ▼11.8541.59 ▼2.54
JoeMobi /wp-admin/options-general.php?page=joemobi-api1,2122.1624.6227.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× 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/joemobi/joemobi-api.php:135
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/joemobi/joemobi_v1.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 your attention:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Find the JoeMobi plugin under Settings.), #2 (The default set up only includes Posts. If you have custom post types, they will appear here - make sure to include them if you want them to show up in your app.), #3 (Latest Posts is the first screen users see when they open your app.), #4 (The Article screen displays the complete post.), #5 (View and add comments to a post.), #6 (Browse posts by Category.), #7 (Browse posts by Tag.), #8 (Search posts for keywords.), #9 (View analytics for your app on the JoeMobi member portal.)
You can look at the official readme.txt

joemobi/joemobi-api.php 85% from 13 tests

The entry point to "JoeMobi - Create your own Native Mobile App" version 2.10 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("joemobi.php" instead of "joemobi-api.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 243 characters long)

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 plugin2,429 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP165647562,429

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity26.44
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods125
▷ Static methods00.00%
▷ Public methods11894.40%
▷ Protected methods75.60%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.77KB6.73KB▼ 0.55%
screenshot-5.png28.99KB28.65KB▼ 1.16%
screenshot-8.png39.68KB38.61KB▼ 2.70%
screenshot-4.png27.80KB26.79KB▼ 3.65%
screenshot-7.png17.86KB17.15KB▼ 3.97%