84% wp-jamstack-deployments

Code Review | JAMstack Deployments

WordPress plugin JAMstack Deployments scored 84% from 54 tests.

About plugin

  • Plugin page: wp-jamstack-deplo...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 15, 2019
  • Latest release: Nov 30, 2020
  • Number of updates: 13
  • Update frequency: every 48.2 days
  • Top authors: crgeary (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 148,635 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
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲0.64ms] Passed 4 tests

Analyzing server-side resources used by JAMstack Deployments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.75 ▼4.26
Dashboard /wp-admin3.46 ▲0.1550.31 ▲0.52
Posts /wp-admin/edit.php3.57 ▲0.2269.64 ▲25.17
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.37 ▲0.10
Media Library /wp-admin/upload.php3.38 ▲0.1539.79 ▲6.20
Deployments /wp-admin/options-general.php?page=wp-jamstack-deployments-settings3.3533.10

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

JAMstack Deployments: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.66 ▼0.735.79 ▲3.6041.10 ▼9.72
Dashboard /wp-admin2,225 ▲375.85 ▲0.9896.00 ▼20.8638.32 ▼4.27
Posts /wp-admin/edit.php2,115 ▲232.03 ▲0.0534.36 ▼0.0532.05 ▼0.52
Add New Post /wp-admin/post-new.php1,545 ▲3123.65 ▲6.02675.20 ▼4.7355.24 ▲1.68
Media Library /wp-admin/upload.php1,414 ▲234.24 ▲0.0693.07 ▼6.6044.32 ▲2.11
Deployments /wp-admin/options-general.php?page=wp-jamstack-deployments-settings1,2772.0523.6130.88

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-jamstack-deployments/src/functions.php:89

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: webhook, jamstack, netlify

wp-jamstack-deployments/wp-jamstack-deployments.php Passed 13 tests

The entry point to "JAMstack Deployments" version 1.1.1 is a PHP file that has certain tags in its header comment area
77 characters long description:
A WordPress plugin for JAMstack deployments on Netlify (and other platforms).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin625 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP9136288506
Markdown243076
JavaScript15030
JSON10013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods33
▷ Static methods2781.82%
▷ Public methods2472.73%
▷ Protected methods927.27%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin