63% firepro

Code Review | Firepro

WordPress plugin Firepro scored63%from 54 tests.

About plugin

  • Plugin page: firepro
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.7.0
  • WordPress version: 6.3.1
  • First release: Mar 4, 2021
  • Latest release: Mar 14, 2021
  • Number of updates: 11
  • Update frequency: every 1.0 days
  • Top authors: firepro5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /441 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.09MB] [CPU: ▼45.07ms] Passed 4 tests

Server-side resources used by Firepro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▼0.5815.03 ▼28.53
Dashboard /wp-admin2.93 ▼0.3818.69 ▼32.71
Posts /wp-admin/edit.php2.93 ▼0.4316.12 ▼35.80
Add New Post /wp-admin/post-new.php2.93 ▼2.9616.62 ▼83.22
Media Library /wp-admin/upload.php2.93 ▼0.3021.10 ▼14.26
Getting Started /wp-admin/admin.php?page=firepro-settings2.9317.80
Pro Setup /wp-admin/admin.php?page=firepro-pro-animations2.9323.42

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 7 new options
New WordPress options
firepro_temp_key
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Firepro
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲20614.39 ▼0.043.36 ▲1.6744.02 ▼0.69
Dashboard /wp-admin2,357 ▲1805.58 ▲0.0397.32 ▲3.6843.78 ▼1.42
Posts /wp-admin/edit.php2,262 ▲1592.01 ▼0.0835.28 ▼9.0834.95 ▼1.26
Add New Post /wp-admin/post-new.php6,409 ▲4,87428.40 ▲10.28927.39 ▲252.9243.97 ▼22.57
Media Library /wp-admin/upload.php1,565 ▲1654.16 ▼0.03111.58 ▲6.6069.25 ▲24.98
Getting Started /wp-admin/admin.php?page=firepro-settings1,5879.48276.4072.85
Pro Setup /wp-admin/admin.php?page=firepro-pro-animations9962.0125.6442.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • firepro_temp_key
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=firepro-pro-animations
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
    • > GET request to /wp-admin/admin.php?page=firepro-pro-animations
    • > Notice in wp-content/plugins/firepro/includes/pages/pro_page.php+2
    Undefined index: proStatus
    • > GET request to /wp-admin/admin.php?page=firepro-pro-animations
    • > Notice in wp-content/plugins/firepro/includes/pages/pro_page.php+21
    Undefined index: firepro_api_key

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 items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/firepro/includes/pages/getting_started.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_textarea_field() in wp-content/plugins/firepro/includes/pages/pro_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function firepro\\add_action() in wp-content/plugins/firepro/firepro.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=firepro-pro-animations
    • > Network (severe)
    https://cdn.firepro.io/releases/firepro.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 503 ()
    • > GET request to /wp-admin/admin.php?page=firepro-pro-animations
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=firepro-pro-animations - Access to XMLHttpRequest at 'https://cdn.firepro.io/api-processing/verify-api.php?apiKey=firepro_temp_key3Qnaymy6ASAs&domainName=wp.com' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=firepro-pro-animations
    • > Network (severe)
    https://cdn.firepro.io/api-processing/verify-api.php?apiKey=firepro_temp_key3Qnaymy6ASAs&domainName=wp.com - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration Passed 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
1 plugin tags: block

firepro/firepro.php Passed 13 tests

The main file in "Firepro" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Add animations to your site with Firepro blocks

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
Success! There were no dangerous files found in this plugin35,544 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
JSON30017,162
JavaScript302,2143,79715,549
Sass22071052,065
PHP988169600
CSS3270166
SVG2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods3096.77%
▷ Protected methods13.23%
▷ Private methods00.00%
Functions13
▷ Named functions861.54%
▷ Anonymous functions538.46%
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
No PNG files were detected