84% appizy-app-embed

Code Review | App Embed

WordPress plugin App Embed scored84%from 54 tests.

About plugin

  • Plugin page: appizy-app-embed
  • Plugin version: 2.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: Dec 21, 2017
  • Latest release: Jun 30, 2021
  • Number of updates: 11
  • Update frequency: every 117.0 days
  • Top authors: Appizy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,630 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.08ms] Passed 4 tests

Analyzing server-side resources used by App Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.25 ▼8.39
Dashboard /wp-admin3.34 ▲0.0344.66 ▼2.91
Posts /wp-admin/edit.php3.39 ▲0.0347.85 ▼3.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.76 ▲9.33
Media Library /wp-admin/upload.php3.26 ▲0.0336.99 ▼1.52
Appizy /wp-admin/tools.php?page=appizy-app-embed3.2331.39

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for App Embed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17414.02 ▼0.625.70 ▲3.6739.99 ▼11.62
Dashboard /wp-admin2,219 ▲314.86 ▼1.07106.69 ▼10.3343.14 ▲1.22
Posts /wp-admin/edit.php2,105 ▲162.02 ▲0.0038.54 ▲1.0536.59 ▲4.47
Add New Post /wp-admin/post-new.php1,537 ▲2318.22 ▲0.80595.11 ▼105.8754.42 ▼2.96
Media Library /wp-admin/upload.php1,401 ▲134.21 ▲0.0198.33 ▼7.0944.99 ▼5.37
Appizy /wp-admin/tools.php?page=appizy-app-embed7642.0623.9824.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 5× 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/appizy-app-embed/includes/admin-config.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/appizy-app-embed/class/class-appizy-api.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/appizy-app-embed/includes/app-embed.php:55
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/appizy-app-embed/class/class-appizy-api.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/appizy-app-embed/includes/admin-tools-screen.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: web-calculator, calculator, appizy, embed, spreadsheet

appizy-app-embed/appizy-app-embed.php 92% from 13 tests

"App Embed" version 2.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin351 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP65188241
JavaScript22711100
CSS13010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin