74% appsplate

Code Review | Appsplate

WordPress plugin Appsplate scored74%from 54 tests.

About plugin

  • Plugin page: appsplate
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3.2
  • WordPress version: 6.3.1
  • First release: May 13, 2021
  • Latest release: Oct 27, 2023
  • Number of updates: 7
  • Update frequency: every 128.1 days
  • Top authors: appsplate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /409 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.52MB] [CPU: ▼13.89ms] Passed 4 tests

This is a short check of server-side resources used by Appsplate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1642.79 ▲4.14
Dashboard /wp-admin3.47 ▲0.1645.18 ▼1.82
Posts /wp-admin/edit.php3.58 ▲0.2246.69 ▼1.25
Add New Post /wp-admin/post-new.php3.34 ▼2.5536.09 ▼54.72
Media Library /wp-admin/upload.php3.39 ▲0.1636.82 ▲2.25

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables
wp_appsplate_checkout
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Appsplate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.40 ▼0.888.97 ▲7.4241.56 ▼1.23
Dashboard /wp-admin2,199 ▲195.65 ▼0.0286.58 ▼1.0537.91 ▼3.80
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0534.72 ▼1.4031.30 ▼6.25
Add New Post /wp-admin/post-new.php1,533 ▲723.33 ▲0.25584.38 ▼94.0664.85 ▲7.18
Media Library /wp-admin/upload.php1,404 ▲44.27 ▲0.0896.12 ▼2.7041.37 ▼2.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_appsplate_checkout
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/appsplate/admin/partials/appsplate-admin-display.php
    • > /wp-content/plugins/appsplate/public/partials/appsplate-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
You can look at the official readme.txt

appsplate/appsplate.php Passed 13 tests

The entry point to "Appsplate" version 2.1.3 is a PHP file that has certain tags in its header comment area
77 characters long description:
Turn you WordPress website to Android & IOS Native App easily with Appsplate.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin768 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13200570762
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.12
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods40
▷ Static methods37.50%
▷ Public methods3075.00%
▷ Protected methods25.00%
▷ Private methods820.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin