83% app-service-assistant

Code Review | App Service Assistant

WordPress plugin App Service Assistant scored83%from 54 tests.

About plugin

  • Plugin page: app-service-assis...
  • Plugin version: 20170703...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jun 30, 2017
  • Latest release: Jul 3, 2017
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: msangapu79 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by App Service Assistant
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.73 ▲0.55
Dashboard /wp-admin3.33 ▲0.0345.10 ▼6.23
Posts /wp-admin/edit.php3.38 ▲0.0248.53 ▲3.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.39 ▼11.02
Media Library /wp-admin/upload.php3.26 ▲0.0236.43 ▲3.55
App Service Assistant /wp-admin/options-general.php?page=my-unique-identifier3.2029.28

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

App Service Assistant: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.68 ▲0.261.47 ▲0.0236.03 ▼2.14
Dashboard /wp-admin2,199 ▲185.55 ▼0.1081.97 ▼35.5835.46 ▼8.51
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0539.98 ▲2.4033.40 ▼1.33
Add New Post /wp-admin/post-new.php1,539 ▲418.39 ▲0.01590.89 ▼45.9371.93 ▼3.54
Media Library /wp-admin/upload.php1,404 ▲74.22 ▼0.0297.98 ▼3.9243.68 ▲0.92
App Service Assistant /wp-admin/options-general.php?page=my-unique-identifier6701.126.7519.39

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=my-unique-identifier
    • > Notice in wp-content/plugins/app-service-assistant/wp-app-service-assistant.php+47
    Undefined index: OS

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (How to install), #2 (Sample output)
You can take inspiration from this readme.txt

app-service-assistant/wp-app-service-assistant.php 69% from 13 tests

The entry point to "App Service Assistant" version 20170703... is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "20170703...")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("app-service-assistant.php" instead of "wp-app-service-assistant.php")
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin140 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25129140

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png64.38KB34.22KB▼ 46.84%
assets/screenshot-2.png51.11KB26.97KB▼ 47.23%