78% my-fastapp

Code Review | My FastAPP

WordPress plugin My FastAPP scored78%from 54 tests.

About plugin

  • Plugin page: my-fastapp
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2021
  • Latest release: Jun 14, 2022
  • Number of updates: 26
  • Update frequency: every 21.2 days
  • Top authors: teamonair (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /4,723 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
Install script ran successfully

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

This is a short check of server-side resources used by My FastAPP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.23 ▼2.55
Dashboard /wp-admin3.33 ▼0.0250.08 ▼11.52
Posts /wp-admin/edit.php3.38 ▲0.0252.31 ▲2.75
Add New Post /wp-admin/post-new.php5.96 ▲0.0795.86 ▼6.69
Media Library /wp-admin/upload.php3.25 ▲0.0237.02 ▲0.03

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
widget_recent-posts
plugin_myfastapp_external_api_uri
plugin_myfastapp_items
db_upgraded
plugin_myfastapp_installed
plugin_myfastapp_apitoken
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Checking browser requirements for My FastAPP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.40 ▼0.151.81 ▲0.2540.98 ▲1.40
Dashboard /wp-admin2,226 ▲465.63 ▲0.1093.40 ▼0.2838.34 ▼3.50
Posts /wp-admin/edit.php2,128 ▲311.96 ▼0.0540.54 ▲1.6634.43 ▼4.15
Add New Post /wp-admin/post-new.php1,557 ▲3118.31 ▼4.81648.89 ▲42.8571.67 ▲19.92
Media Library /wp-admin/upload.php1,422 ▲224.20 ▲0.0297.19 ▼4.5440.85 ▼5.81
Settings /wp-admin/admin.php?page=my-fastapp#/settings8112.1624.5727.05
Builds /wp-admin/admin.php?page=my-fastapp#/builds7932.0226.2425.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • plugin_myfastapp_version
    • db_upgraded
    • theysaidso_admin_options
    • plugin_myfastapp_items
    • plugin_myfastapp_external_api_uri

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/misc.php' (include_path='.:/usr/share/php') in wp-content/plugins/my-fastapp/includes/class-controller.php on line 7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-fastapp/includes/class-controller.php on line 7
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/misc.php): failed to open stream: No such file or directory in wp-content/plugins/my-fastapp/includes/class-controller.php on line 7

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-fastapp#/builds
    • > Network (severe)
    http://localhost:3000/static/js/bundle.js?ver=1.3.0 - Failed to load resource: net::ERR_CONNECTION_REFUSED
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-fastapp#/builds
    • > Network (severe)
    http://localhost:3000/static/js/vendors~main.chunk.js?ver=1.3.0 - Failed to load resource: net::ERR_CONNECTION_REFUSED
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-fastapp#/builds
    • > Network (severe)
    http://localhost:3000/static/js/main.chunk.js?ver=1.3.0 - Failed to load resource: net::ERR_CONNECTION_REFUSED

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #0, #1, #2, #3, #4, #5 in my-fastapp/assets to your readme.txt
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

my-fastapp/my-fastapp.php 92% from 13 tests

The main PHP script in "My FastAPP" version 1.3.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin916 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP6165180807
PO File23842104
JavaScript4054
CSS1011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.67
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods59
▷ Static methods35.08%
▷ Public methods4474.58%
▷ Protected methods00.00%
▷ Private methods1525.42%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/image-loginpage.png25.01KB12.03KB▼ 51.91%
assets/images/image-menuheader.png33.29KB13.42KB▼ 59.68%
assets/images/image-appicon.png21.93KB10.54KB▼ 51.96%
assets/images/image-splash.png25.24KB11.97KB▼ 52.56%