89% mobile-assistant-connector

Code Review | Mobile Assistant Connector

WordPress plugin Mobile Assistant Connector scored 89% from 54 tests.

About plugin

  • Plugin page: mobile-assistant-...
  • Plugin version: 2.2.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-6.0
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Aug 3, 2022
  • Number of updates: 194
  • Update frequency: every 14.1 days
  • Top authors: eMagicOne (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

4,000+ active / 134,789 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.26ms] Passed 4 tests

An overview of server-side resources used by Mobile Assistant Connector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.46 ▼2.32
Dashboard /wp-admin3.31 ▲0.0145.41 ▼3.73
Posts /wp-admin/edit.php3.42 ▲0.0746.91 ▲0.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.40 ▼19.31
Media Library /wp-admin/upload.php3.23 ▲0.0032.84 ▲1.40

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Mobile Assistant Connector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.21 ▼1.141.51 ▼0.1538.87 ▼4.49
Dashboard /wp-admin2,218 ▲354.86 ▼0.1299.28 ▼8.3639.56 ▼1.70
Posts /wp-admin/edit.php2,095 ▲92.00 ▼0.0133.12 ▼3.1034.09 ▲3.02
Add New Post /wp-admin/post-new.php1,537 ▲2022.71 ▲4.95685.05 ▲49.5052.12 ▼0.48
Media Library /wp-admin/upload.php1,400 ▲94.34 ▲0.1195.54 ▼0.9844.46 ▲2.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #11 (Mobile Assistant Push Notifications), #12 (Mobile Assistant Side Menu), #13 (Mobile Assistant Widget), #14 (Widget), #15 (Plugin)
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

mobile-assistant-connector/mobassistantconnector.php 85% from 13 tests

The principal PHP file in "Mobile Assistant Connector" v. 2.2.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mobile-assistant-connector.php" instead of "mobassistantconnector.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected11,293 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP122,11361910,130
JavaScript413332599
PO File2166166374
CSS2406190

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity166.80
▷ Minimum class complexity1.00
▷ Maximum class complexity953.00
Average method complexity7.22
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods267
▷ Static methods4516.85%
▷ Public methods14453.93%
▷ Protected methods93.37%
▷ Private methods11442.70%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants119
▷ Global constants86.72%
▷ Class constants11193.28%
▷ Public constants111100.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
11 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/unchecked.png0.40KB0.15KB▼ 62.32%
images/add.png0.60KB0.40KB▼ 33.82%
images/bulk_trash.png0.37KB0.40KB0.00%
images/checked.png0.46KB0.36KB▼ 22.55%
images/down.png0.42KB0.25KB▼ 40.09%